summaryrefslogtreecommitdiffstats
path: root/bin/snapshot
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-12-24 05:55:14 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-12-24 05:55:14 (GMT)
commit5f2935972cfa7596c52b0081bfd834d7d35d2296 (patch)
tree9f386fea50163a80b727506eedb3136164f577cc /bin/snapshot
parent82bc963f4c1bd4792372e9812b5a7a8fd1edd926 (diff)
downloadhdf5-5f2935972cfa7596c52b0081bfd834d7d35d2296.zip
hdf5-5f2935972cfa7596c52b0081bfd834d7d35d2296.tar.gz
hdf5-5f2935972cfa7596c52b0081bfd834d7d35d2296.tar.bz2
[svn-r9715] Purpose:
Feature Description: Added the deploydir feature. Platforms tested: Hand tested.
Diffstat (limited to 'bin/snapshot')
-rwxr-xr-xbin/snapshot17
1 files changed, 15 insertions, 2 deletions
diff --git a/bin/snapshot b/bin/snapshot
index f2b98c2..eee8bbc 100755
--- a/bin/snapshot
+++ b/bin/snapshot
@@ -83,6 +83,7 @@ while [ $# -gt 0 ] ; do
cmd=""
;;
deploy)
+ # deploy the built binary.
shift
if [ $# -lt 1 ]; then
echo "deploy <dir> missing"
@@ -93,6 +94,17 @@ while [ $# -gt 0 ] ; do
cmddeploy="deploy"
DEPLOYDIRNAME="$1"
;;
+ deploydir)
+ # default directory for deployment.
+ shift
+ if [ $# -lt 1 ]; then
+ echo "deploydir <dir> missing"
+ errcode=1
+ cmd="help"
+ break
+ fi
+ deploydir="$1"
+ ;;
test)
cmdtest="test"
cmd=""
@@ -199,7 +211,7 @@ if [ "$cmd" = help ]; then
set -
cat <<EOF
Usage: $PROGNAME [all] [checkout] [diff] [test] [srcdir] [release] [help]
- [clean] [distclean] [echo] [deploy <dir>]
+ [clean] [distclean] [echo] [deploy <dir>] [deploydir <dir>]
[zlib <zlib_path>] [archive <arch_path>] [srcdirname <dir>]
[op-configure <option>] [--<option>]
all: Run all commands (checkout, test & release)
@@ -208,6 +220,7 @@ Usage: $PROGNAME [all] [checkout] [diff] [test] [srcdir] [release] [help]
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>
+ deploydir: use <dir> as the default directory for deployment
test: Run test
release: Run release
clean: Run make clean
@@ -399,7 +412,7 @@ fi # Test the HDF5 library
if [ -n "$DEPLOYDIRNAME" ]; then
if [ "$snapshot" = "yes" ]; then
TIMESTAMP "deploy"
- if (cd ${TESTDIR} && ${CURRENT}/bin/deploy ${DEPLOYDIRNAME}); then
+ if (cd ${TESTDIR} && ${CURRENT}/bin/deploy ${deploydir}/${DEPLOYDIRNAME}); then
errcode=$?
exit $errcode
fi