From 8ff52b90382cd24af087636e9e9e77de83459444 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Mon, 6 Feb 2006 22:49:32 -0500 Subject: [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. --- bin/release | 7 +++++++ 1 file changed, 7 insertions(+) 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` -- cgit v0.12