From 0a65827564d7f9d7c7a54cc4af29dd51c83c1804 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Wed, 24 Jan 2007 15:17:42 -0500 Subject: [PATCH] [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. --- bin/snapshot | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/bin/snapshot b/bin/snapshot index 490863988f..8bfcf67927 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 <] [deploydir ] - [zlib ] [archive ] [srcdirname ] + [zlib ] [releasedir ] [srcdirname ] [op-configure