diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2004-12-22 05:15:44 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2004-12-22 05:15:44 (GMT) |
commit | c2188b9781e440824181aa85884fa24f95bfcef0 (patch) | |
tree | b830e583d32e61b67ec1acb7d301e32e0f750f7e /bin/deploy | |
parent | d091bda690480d1494f41fa231e9de0fccbff730 (diff) | |
download | hdf5-c2188b9781e440824181aa85884fa24f95bfcef0.zip hdf5-c2188b9781e440824181aa85884fa24f95bfcef0.tar.gz hdf5-c2188b9781e440824181aa85884fa24f95bfcef0.tar.bz2 |
[svn-r9699] Purpose:
Bug fix.
Description:
-e is not a valid condition for /bin/sh in all machines such as SunOS.
Solution:
Rewrote the condition to avoid the need of using "test -e ...".
Platforms tested:
In Sol only.
Diffstat (limited to 'bin/deploy')
-rwxr-xr-x | bin/deploy | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -46,14 +46,14 @@ if [ $# != 1 ]; then fi installdir=$1 -if [ ! -e $installdir ]; then - mkdir $installdir -fi -if [ ! -d $installdir ]; then +# create installdir if it does not exist yet. +if [ -d $installdir ] || mkdir $installdir ; then + ${MAKE:-gmake} install prefix=$installdir && \ + ( cd $installdir/bin; ./h5redeploy -force) + exit $? +else echo $installdir is not a valid directory USAGE exit 1 fi -${MAKE:-gmake} install prefix=$installdir && ( cd $installdir/bin; ./h5redeploy -force) -exit $? |