3 # load in our helper functions, like date_stringer.
4 source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
6 # get into the genesis directory to package up.
7 pushd $HOME/xsede/code/genesis2/trunk &>/dev/null
9 # clean out any class files or other generated junk.
12 # do one update to get to the latest point.
13 svn update . &>/dev/null
15 # get the svn revision number from the code now we're sure what prompt we can look for,
16 # modulo any check-ins since the above update was running.
17 svn_revision=$(svn update . | grep "At revision [0-9]*" | sed -e 's/[^0-9]*\([0-9]*\)[^0-9]*/\1/' )
19 filename="$HOME/GenesisII_source_rev${svn_revision}_on_$(date_stringer).tar.gz"
21 echo "Creating build archive: $(basename $filename)"
23 # hop up one level to be above the trunk folder.
26 # now do the actual packing of the code, without some things we do not wish to share.
27 tar -czf $filename trunk/ --exclude="trunk/deployments/Genii*" --exclude="installer_base" --exclude=".svn" --exclude="products/*" --exclude="Media/*"