summaryrefslogtreecommitdiffstats
path: root/bin/release
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2006-02-07 03:49:32 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2006-02-07 03:49:32 (GMT)
commit8ff52b90382cd24af087636e9e9e77de83459444 (patch)
treeca744dc276a6167c8b95d3275012fc1c6a03cc78 /bin/release
parent7ffbea9c2416c272aeb04ad33f6944cdc2533ff3 (diff)
downloadhdf5-8ff52b90382cd24af087636e9e9e77de83459444.zip
hdf5-8ff52b90382cd24af087636e9e9e77de83459444.tar.gz
hdf5-8ff52b90382cd24af087636e9e9e77de83459444.tar.bz2
[svn-r11920] Purpose:
improvement. Description: Release must be run at the top of the hdf5 source directory. Added a test to verify this condition at the beginning of the command. Platforms tested: Tested by hand.
Diffstat (limited to 'bin/release')
-rwxr-xr-xbin/release7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/release b/bin/release
index 333c3c6..380c5bf 100755
--- a/bin/release
+++ b/bin/release
@@ -99,6 +99,13 @@ EOF
}
+# This command must be run at the top level of the hdf5 source directory.
+# Verify this requirement.
+if [ ! \( -f configure -a -f bin/release \) ]; then
+ echo "$0 must be run at the top level of the hdf5 source directory"
+ exit 1
+fi
+
# Defaults
DEST=releases
VERS=`perl bin/h5vers`