summaryrefslogtreecommitdiffstats
path: root/bin/snapshot
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-12-16 04:44:11 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-12-16 04:44:11 (GMT)
commit2661085bd134b78342088c533c126d5d430870e6 (patch)
treeb16c8c671c04afe3d974d14b0d68334af0b812b2 /bin/snapshot
parentd00c88a8b7b63d023fceeb08d058d860c6c5df24 (diff)
downloadhdf5-2661085bd134b78342088c533c126d5d430870e6.zip
hdf5-2661085bd134b78342088c533c126d5d430870e6.tar.gz
hdf5-2661085bd134b78342088c533c126d5d430870e6.tar.bz2
[svn-r9676] Purpose:
New feature Description: Added the deploy optin. Platforms tested: Tested by hand in heping.
Diffstat (limited to 'bin/snapshot')
-rwxr-xr-xbin/snapshot32
1 files changed, 30 insertions, 2 deletions
diff --git a/bin/snapshot b/bin/snapshot
index 6be29be..f2b98c2 100755
--- a/bin/snapshot
+++ b/bin/snapshot
@@ -82,6 +82,17 @@ while [ $# -gt 0 ] ; do
cmddiff="diff"
cmd=""
;;
+ deploy)
+ shift
+ if [ $# -lt 1 ]; then
+ echo "deploy <dir> missing"
+ errcode=1
+ cmd="help"
+ break
+ fi
+ cmddeploy="deploy"
+ DEPLOYDIRNAME="$1"
+ ;;
test)
cmdtest="test"
cmd=""
@@ -188,17 +199,20 @@ if [ "$cmd" = help ]; then
set -
cat <<EOF
Usage: $PROGNAME [all] [checkout] [diff] [test] [srcdir] [release] [help]
- [zlib <zlib_path>] [archive <arch_path>] [dir <dir>]
- [op-configure <option>] [--<option>]
+ [clean] [distclean] [echo] [deploy <dir>]
+ [zlib <zlib_path>] [archive <arch_path>] [srcdirname <dir>]
+ [op-configure <option>] [--<option>]
all: Run all commands (checkout, test & release)
[Default is all]
checkout: Run cvs checkout
diff: Run diff on current and previous versions. Exit 0 if
no significant differences are found. Otherwise, non-zero.
+ deploy: deploy binary to directory <dir>
test: Run test
release: Run release
clean: Run make clean
distclean:Run make distclean
+ echo: Turn on echo mode (set -x)
setenv <name> <value>:
Set environment variable <name> to <value>.
setenvN <N> <name> <value> ...:
@@ -380,6 +394,20 @@ fi # Test the HDF5 library
#=============================
+# Run deployment if requested.
+#=============================
+if [ -n "$DEPLOYDIRNAME" ]; then
+ if [ "$snapshot" = "yes" ]; then
+ TIMESTAMP "deploy"
+ if (cd ${TESTDIR} && ${CURRENT}/bin/deploy ${DEPLOYDIRNAME}); then
+ errcode=$?
+ exit $errcode
+ fi
+ fi
+fi # Deploy
+
+
+#=============================
# Run Release snapshot, update version, and commit to cvs and tag
#=============================
if [ "$cmd" = "all" -o -n "$cmdrel" ]; then