return 1
fi
isPython=`which python 2>/dev/null`
-if [ -n isPython ]; then
+if [ -n "$isPython" ]; then
# version number is calculated as: <major>*10000+<minor>*100+<release>
# e.g. for Python 2.3.4 it is equal to 20304
ver=`python -V 2>&1`
return 1
fi
isPython=`which python 2>/dev/null`
-if [ -n isPython ]; then
+if [ -n "$isPython" ]; then
# version number is calculated as: <major>*10000+<minor>*100+<release>
# for Python 2.3.5 it is equal to 20305
ver=`python -V 2>&1`
check_version()
{
isdot=`which dot 2>/dev/null`
-if [ -n isdot ]; then
+if [ -n "$isdot" ]; then
ver=`dot -V 2>&1 | awk '{print $3}'`
if [ "$ver" == "1.9" ]; then
return 0
check_version()
{
isdot=`which dot 2>/dev/null`
-if [ -n isdot ]; then
+if [ -n "$isdot" ]; then
ver=`dot -V 2>&1 | awk '{print $3}'`
if [ "$ver" == "2.2.1" ]; then
return 0
sed -e 's%\(.*\)\([[:space:]].*libhdf5.la\)\(.*\)%\1 -lhdf5\3%g' libmedC.la > libmedC.la.new
mv -f libmedC.la.new libmedC.la
tmp=""
-if [ -n ${HDF5HOME} ]; then
+if [ -n "${HDF5HOME}" ]; then
tmp="-L${HDF5HOME}/lib"
fi
sed -e "s%\(.*\)\([[:space:]].*-L.*/hdf5-1\.4\.4/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libmed.la > libmed.la.new
sed -e 's%\(.*\)\([[:space:]].*libhdf5.la\)\(.*\)%\1 -lhdf5\3%g' -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" libmedC.la > libmedC.la.new
mv -f libmedC.la.new libmedC.la
tmp=""
-if [ -n ${HDF5HOME} ]; then
+if [ -n "${HDF5HOME}" ]; then
tmp="-L${HDF5HOME}/lib"
fi
sed -e "s%\(.*\)\([[:space:]].*-L.*/hdf5-1\.4\.4/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libmed.la > libmed.la.new
if [ -z "${sippython}" ] ; then
sippython="`find_in_path sip.so /usr/lib/python${python_version}/site-packages`"
fi
- if [ -n ${sippython} ]; then
+ if [ -n "${sippython}" ]; then
tmp="${sipdir} ${sipdir} \${PATH} ${PATH}";
path=`sort_path ${tmp}`
tmp="${sipdir} ${sipdir} \${LD_LIBRARY_PATH} ${LD_LIBRARY_PATH}";