summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2007-01-24 20:17:42 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2007-01-24 20:17:42 (GMT)
commit0a65827564d7f9d7c7a54cc4af29dd51c83c1804 (patch)
treed6c38b1096359603138a81f43235d4585db86ae1 /bin
parentcdcd2cecf2efae22173c4a26e5ee587c04303a9f (diff)
downloadhdf5-0a65827564d7f9d7c7a54cc4af29dd51c83c1804.zip
hdf5-0a65827564d7f9d7c7a54cc4af29dd51c83c1804.tar.gz
hdf5-0a65827564d7f9d7c7a54cc4af29dd51c83c1804.tar.bz2
[svn-r13188] Renamed the "archive" option as "releasedir". Changed the release directory
default to be release_dir in the snapshot base directory so that it is simplier to control release directory destination per snapshot setup. Tested platform: Kagiso.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/snapshot24
1 files changed, 12 insertions, 12 deletions
diff --git a/bin/snapshot b/bin/snapshot
index 4908639..8bfcf679 100755
--- a/bin/snapshot
+++ b/bin/snapshot
@@ -52,9 +52,8 @@ echo ===Dumping environment variables===
printenv | sort
echo ===Done Dumping environment variables===
-# Where are the snapshots stored?
-ARCHIVES_default=/afs/ncsa/ftp/HDF/pub/outgoing/hdf5/snapshots
-ARCHIVES=$ARCHIVES_default
+# snapshots release directory. Default relative to $BASEDIR.
+ReleaseDir_default=release_dir
# Where is the zlib library?
# At NCSA, half of the machines have it in /usr/lib, the other half at
@@ -178,15 +177,15 @@ while [ $# -gt 0 ] ; do
fi
ZLIB="$1"
;;
- archive)
+ releasedir)
shift
if [ $# -lt 1 ]; then
- echo "Archive pathname missing"
+ echo "Release directory name missing"
errcode=1
cmd="help"
break
fi
- ARCHIVES="$1"
+ ReleaseDir="$1"
;;
--*)
OP_CONFIGURE="$OP_CONFIGURE $1"
@@ -219,7 +218,7 @@ if [ "$cmd" = help ]; then
cat <<EOF
Usage: $PROGNAME [all] [checkout] [diff] [test] [srcdir] [release] [help]
[clean] [distclean] [echo] [deploy <dir>] [deploydir <dir>]
- [zlib <zlib_path>] [archive <arch_path>] [srcdirname <dir>]
+ [zlib <zlib_path>] [releasedir <dir>] [srcdirname <dir>]
[op-configure <option>] [--<option>]
all: Run all commands (checkout, test & release)
[Default is all]
@@ -251,9 +250,9 @@ Usage: $PROGNAME [all] [checkout] [diff] [test] [srcdir] [release] [help]
zlib <zlib_path>:
Use <zlib_path> as the ZLIB locations
[Default is $ZLIB_default]
- archive <arch_path>:
- Use <arch_path> as the release ARCHIVE area
- [Default is $ARCHIVES_default]
+ releasedir <dir>:
+ Use <dir> as the release directory
+ [Default is $ReleaseDir_default]
op-configure <option>:
Pass <option> to the configure command
E.g., "snapshot op-configure --enable-parallel"
@@ -288,6 +287,7 @@ fi
CURRENT=${BASEDIR}/current
PREVIOUS=${BASEDIR}/previous
+ReleaseDir=${ReleaseDir:=${BASEDIR}/${ReleaseDir_default}}
HOSTNAME=`hostname | cut -f1 -d.` # no domain part
if [ $H5VERSION != hdf5 ]; then
SVNVERSION="hdf5/branches/$H5VERSION"
@@ -436,8 +436,8 @@ if [ "$cmd" = "all" -o -n "$cmdrel" ]; then
set -e
cd ${CURRENT}
RELEASE_VERSION="`perl bin/h5vers -v`"
- echo "Making snapshot release ($RELEASE_VERSION) to ${ARCHIVES}..."
- bin/release -d $ARCHIVES $METHODS
+ echo "Making snapshot release ($RELEASE_VERSION) to ${ReleaseDir}..."
+ bin/release -d $ReleaseDir $METHODS
perl bin/h5vers -i
svn -q commit -m "Snapshot $RELEASE_VERSION"
)