EOF
check_job ${PRODUCT_DIR}/MAKE.LOG make
-check_job ${PRODUCT_DIR}/MAKEINSTALL.LOG make install
+check_job ${PRODUCT_DIR}/INSTALL.LOG make install
+#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log
rm -fr ${PRODUCT_WORK}
### modify libmed.la libmedC.la files to correct direct path to hdf5 library
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