diff options
Diffstat (limited to 'bin/snapshot')
-rwxr-xr-x | bin/snapshot | 32 |
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 |