summaryrefslogtreecommitdiffstats
path: root/bin/snapshot
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2001-10-02 20:47:05 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2001-10-02 20:47:05 (GMT)
commit2fda38ead08a5f3a70c627c4d02742f3d025d954 (patch)
treebe06a028595eeddd944a459f15ffed8ad3673e07 /bin/snapshot
parentbac55034d815df3cfb1b1d69999f9f6585d8419c (diff)
downloadhdf5-2fda38ead08a5f3a70c627c4d02742f3d025d954.zip
hdf5-2fda38ead08a5f3a70c627c4d02742f3d025d954.tar.gz
hdf5-2fda38ead08a5f3a70c627c4d02742f3d025d954.tar.bz2
[svn-r4513] Purpose:
feature Description: Recognize command line argument in the form of '--*' as a configure command option by default. Since all normal configure options are in the form of '--*', this will simplify the "op-configure <option>" syntax. The latter syntax is still kept in case one would want to pass in some configure argument that does not fit this syntax. Platforms tested: Eirene.
Diffstat (limited to 'bin/snapshot')
-rwxr-xr-xbin/snapshot9
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/snapshot b/bin/snapshot
index 02d3b83..4a5d668 100755
--- a/bin/snapshot
+++ b/bin/snapshot
@@ -102,6 +102,9 @@ while [ $# -gt 0 ] ; do
fi
ARCHIVES="$1"
;;
+ --*)
+ OP_CONFIGURE="$OP_CONFIGURE $1"
+ ;;
op-configure)
shift
if [ $# -lt 1 ]; then
@@ -127,7 +130,7 @@ if [ "$cmd" = help ]; then
cat <<EOF
Usage: $0 [all] [checkout] [test] [srcdir] [release] [help]
[hdf4 <hdf4lib_path>] [archive <arch_path>] [dir <dir>]
- [op-configure <option>]
+ [op-configure <option>] [--<option>]
all: Run all commands (checkout, test & release)
[Default is all]
checkout: Run cvs checkout
@@ -154,6 +157,10 @@ Usage: $0 [all] [checkout] [test] [srcdir] [release] [help]
Pass <option> to the configure command
E.g., "snapshot op-configure --enable-parallel"
configures for parallel mode
+ --<option>:
+ Pass --<option> to the configure command
+ E.g., "snapshot --enable-parallel"
+ configures for parallel mode
EOF
exit $errcode
fi