projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a80d8d3
)
cleaned this up and got it working again.
author
Chris Koeritz
<fred@gruntose.com>
Mon, 17 Feb 2014 17:09:39 +0000
(12:09 -0500)
committer
Chris Koeritz
<fred@gruntose.com>
Mon, 17 Feb 2014 17:09:39 +0000
(12:09 -0500)
scripts/archival/pickle_genesis2.sh
patch
|
blob
|
history
diff --git
a/scripts/archival/pickle_genesis2.sh
b/scripts/archival/pickle_genesis2.sh
index 221cdb72a82ea178e35d9937cb30748f1c9b78f3..59ad9585067da2f32a610afa1bd811f5fb739c90 100644
(file)
--- a/
scripts/archival/pickle_genesis2.sh
+++ b/
scripts/archival/pickle_genesis2.sh
@@
-1,15
+1,19
@@
#!/bin/bash
#!/bin/bash
+#untested recently!!!
+
# load in our helper functions, like date_stringer.
source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
# get into the genesis directory to package up.
# load in our helper functions, like date_stringer.
source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
# get into the genesis directory to package up.
-pushd $
HOME/xsede/code/genesis2/trunk
&>/dev/null
+pushd $
GENII_INSTALL_DIR
&>/dev/null
# clean out any class files or other generated junk.
# clean out any class files or other generated junk.
+echo Cleaning the code before pickling...
ant clean &>/dev/null
# do one update to get to the latest point.
ant clean &>/dev/null
# do one update to get to the latest point.
+echo Updating to latest code before pickling...
svn update . &>/dev/null
# get the svn revision number from the code now we're sure what prompt we can look for,
svn update . &>/dev/null
# get the svn revision number from the code now we're sure what prompt we can look for,
@@
-18,14
+22,15
@@
svn_revision=$(svn update . | grep "At revision [0-9]*" | sed -e 's/[^0-9]*\([0-
filename="$HOME/GenesisII_source_rev${svn_revision}_on_$(date_stringer).tar.gz"
filename="$HOME/GenesisII_source_rev${svn_revision}_on_$(date_stringer).tar.gz"
-echo "
Creating
build archive: $(basename $filename)"
+echo "
Now pickling code into
build archive: $(basename $filename)"
# hop up one level to be above the trunk folder.
cd ..
# now do the actual packing of the code, without some things we do not wish to share.
# hop up one level to be above the trunk folder.
cd ..
# now do the actual packing of the code, without some things we do not wish to share.
-tar -czf $filename trunk/ --exclude="trunk/deployments/Genii*" --exclude="installer_base" --exclude=".svn" --exclude="products/*" --exclude="Media/*"
+just_dir=$(basename $GENII_INSTALL_DIR)
+#echo just dir is $just_dir
+tar -czf $filename "$just_dir" --exclude="trunk/deployments/Genii*" --exclude="installer_base" --exclude=".svn" --exclude="products/*" --exclude="Media/*"
popd &>/dev/null
popd &>/dev/null
-