mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[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.
This commit is contained in:
parent
d091bda690
commit
c2188b9781
12
bin/deploy
12
bin/deploy
@ -46,14 +46,14 @@ if [ $# != 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
installdir=$1
|
installdir=$1
|
||||||
if [ ! -e $installdir ]; then
|
# create installdir if it does not exist yet.
|
||||||
mkdir $installdir
|
if [ -d $installdir ] || mkdir $installdir ; then
|
||||||
fi
|
${MAKE:-gmake} install prefix=$installdir && \
|
||||||
if [ ! -d $installdir ]; then
|
( cd $installdir/bin; ./h5redeploy -force)
|
||||||
|
exit $?
|
||||||
|
else
|
||||||
echo $installdir is not a valid directory
|
echo $installdir is not a valid directory
|
||||||
USAGE
|
USAGE
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${MAKE:-gmake} install prefix=$installdir && ( cd $installdir/bin; ./h5redeploy -force)
|
|
||||||
exit $?
|
|
||||||
|
Loading…
Reference in New Issue
Block a user