took out diagnostic line
[feisty_meow.git] / scripts / archival / pickle_genesis2.sh
1 #!/bin/bash
2
3 # load in our helper functions, like date_stringer.
4 source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
5
6 # get into the genesis directory to package up.
7 pushd $HOME/xsede/code/genesis2/trunk &>/dev/null
8
9 # clean out any class files or other generated junk.
10 ant clean &>/dev/null
11
12 # do one update to get to the latest point.
13 svn update . &>/dev/null
14
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/' )
18
19 filename="$HOME/GenesisII_source_rev${svn_revision}_on_$(date_stringer).tar.gz"
20
21 echo "Creating build archive: $(basename $filename)"
22
23 # hop up one level to be above the trunk folder.
24 cd ..
25
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/*"
28
29 popd &>/dev/null
30
31