summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2007-04-18 21:37:44 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2007-04-18 21:37:44 (GMT)
commit2ad7c73e5bcfd2bccbb4ce7e65d822519bf8569f (patch)
tree14d833a390dfd2b02c3de5e070fa11a8d153d7a3 /bin
parenta16b402a6f94df4d74c3f4a940cd848b560a1bc5 (diff)
downloadhdf5-2ad7c73e5bcfd2bccbb4ce7e65d822519bf8569f.zip
hdf5-2ad7c73e5bcfd2bccbb4ce7e65d822519bf8569f.tar.gz
hdf5-2ad7c73e5bcfd2bccbb4ce7e65d822519bf8569f.tar.bz2
[svn-r13687] Improvement.
Added a clarification the environment variables dumping is BEFORE command option parsing. Also added a dumping AFTER the option parsing. Tested: Just eyeballed since it is trival. Let daily tests runs to test it.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/snapshot11
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/snapshot b/bin/snapshot
index 5d5c4d6..e1c1f32 100755
--- a/bin/snapshot
+++ b/bin/snapshot
@@ -53,10 +53,10 @@ uname -a
# setup exit banner message
trap EXIT_BANNER 0
-# Dump environment variables
-echo ===Dumping environment variables===
+# Dump environment variables before option parsing
+echo ===Dumping environment variables before option parsing ===
printenv | sort
-echo ===Done Dumping environment variables===
+echo ===Done Dumping environment variables before option parsing ===
# snapshots release directory. Default relative to $BASEDIR.
ReleaseDir_default=release_dir
@@ -222,6 +222,11 @@ while [ $# -gt 0 ] ; do
shift
done
+# Dump environment variables after option parsing
+echo ===Dumping environment variables after option parsing ===
+printenv | sort
+echo ===Done Dumping environment variables after option parsing ===
+
if [ "$cmd" = help ]; then
set -
cat <<EOF