summaryrefslogtreecommitdiffstats
path: root/bin/snapshot
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-12-24 05:55:16 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-12-24 05:55:16 (GMT)
commita1fa6e2aff1e12c125eeb7ac151d4f6b304f7fd9 (patch)
tree26ecdbe4083986137dae6c89dd260c27f14e3f6a /bin/snapshot
parent9d241be57f05f133edf360a87a83405edd160545 (diff)
downloadhdf5-a1fa6e2aff1e12c125eeb7ac151d4f6b304f7fd9.zip
hdf5-a1fa6e2aff1e12c125eeb7ac151d4f6b304f7fd9.tar.gz
hdf5-a1fa6e2aff1e12c125eeb7ac151d4f6b304f7fd9.tar.bz2
[svn-r9716] 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