mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-24 17:51:25 +08:00
[svn-r28841] indentations were messed up by some previous commit.
Restored them to more readable spacing. No code change. Test: visual inspection.
This commit is contained in:
parent
ed380746fe
commit
74fbe507ae
222
bin/cmakehdf5
222
bin/cmakehdf5
@ -124,12 +124,12 @@ STEP()
|
||||
|
||||
echo "$banner" with output saved in $logfile
|
||||
(TIMESTAMP; nerror=0 ;
|
||||
echo "eval $command"
|
||||
eval $command || nerror=1 ;
|
||||
TIMESTAMP; exit $nerror) < /dev/null > "$logfile" 2>&1
|
||||
echo "eval $command"
|
||||
eval $command || nerror=1 ;
|
||||
TIMESTAMP; exit $nerror) < /dev/null > "$logfile" 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "error in '$banner'. $progname aborted."
|
||||
exit 1
|
||||
echo "error in '$banner'. $progname aborted."
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
@ -143,26 +143,26 @@ INSTALL_HDF5()
|
||||
{
|
||||
myos="`uname -s`"
|
||||
case "$myos" in
|
||||
Linux)
|
||||
install_file=./HDF5-${version}-Linux.sh
|
||||
$install_file --skip-license $*
|
||||
;;
|
||||
Darwin) # Mac OSX DMG file
|
||||
install_file=HDF5-${version}-Darwin.dmg
|
||||
test -d hdf5 || mkdir hdf5
|
||||
basename=`basename $install_file .dmg`
|
||||
# mount the DMG file as /Volumes/$basename
|
||||
# echo 'Y' as yes for license.
|
||||
echo Y | hdiutil mount $install_file
|
||||
# copy the contents to the install location
|
||||
cp -R "/Volumes/$basename/HDF_Group" hdf5
|
||||
# unmount the DMG file
|
||||
hdiutil unmount /Volumes/$basename
|
||||
;;
|
||||
*) # unknown/unsupported OS.
|
||||
echo "INSTALL_HDF5: Error--unknown/unsupported OS($myos)"
|
||||
return 1
|
||||
;;
|
||||
Linux)
|
||||
install_file=./HDF5-${version}-Linux.sh
|
||||
$install_file --skip-license $*
|
||||
;;
|
||||
Darwin) # Mac OSX DMG file
|
||||
install_file=HDF5-${version}-Darwin.dmg
|
||||
test -d hdf5 || mkdir hdf5
|
||||
basename=`basename $install_file .dmg`
|
||||
# mount the DMG file as /Volumes/$basename
|
||||
# echo 'Y' as yes for license.
|
||||
echo Y | hdiutil mount $install_file
|
||||
# copy the contents to the install location
|
||||
cp -R "/Volumes/$basename/HDF_Group" hdf5
|
||||
# unmount the DMG file
|
||||
hdiutil unmount /Volumes/$basename
|
||||
;;
|
||||
*) # unknown/unsupported OS.
|
||||
echo "INSTALL_HDF5: Error--unknown/unsupported OS($myos)"
|
||||
return 1
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
@ -172,14 +172,14 @@ INSTALL_HDF5()
|
||||
DUMP_LOGFILE()
|
||||
{
|
||||
for x in $*; do
|
||||
if [ -f $x ]; then
|
||||
echo "=================================="
|
||||
echo "Dumping $x"
|
||||
echo "=================================="
|
||||
cat $x
|
||||
echo "==== END $x ====="
|
||||
echo
|
||||
fi
|
||||
if [ -f $x ]; then
|
||||
echo "=================================="
|
||||
echo "Dumping $x"
|
||||
echo "=================================="
|
||||
cat $x
|
||||
echo "==== END $x ====="
|
||||
echo
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
@ -207,84 +207,84 @@ fi
|
||||
# tools Build tools
|
||||
while [ $# -gt 0 ]; do
|
||||
case "$1" in
|
||||
--enable-fortran)
|
||||
build_fortran=-DHDF5_BUILD_FORTRAN:BOOL=ON
|
||||
;;
|
||||
--disable-fortran)
|
||||
build_fortran=-DHDF5_BUILD_FORTRAN:BOOL=OFF
|
||||
;;
|
||||
--enable-cxx)
|
||||
build_cpp_lib=-DHDF5_BUILD_CPP_LIB:BOOL=ON
|
||||
;;
|
||||
--disable-cxx)
|
||||
build_cpp_lib=-DHDF5_BUILD_CPP_LIB:BOOL=OFF
|
||||
;;
|
||||
--enable-hl)
|
||||
build_hl_lib=-DHDF5_BUILD_HL_LIB:BOOL=ON
|
||||
;;
|
||||
--disable-hl)
|
||||
build_hl_lib=-DHDF5_BUILD_HL_LIB:BOOL=OFF
|
||||
;;
|
||||
--enable-shared)
|
||||
shared_lib=-DBUILD_SHARED_LIBS:BOOL=ON
|
||||
;;
|
||||
--disable-shared)
|
||||
shared_lib=-DBUILD_SHARED_LIBS:BOOL=OFF
|
||||
;;
|
||||
--enable-tools)
|
||||
build_tools=-DHDF5_BUILD_TOOLS:BOOL=ON
|
||||
;;
|
||||
--disable-tools)
|
||||
build_tools=-DHDF5_BUILD_TOOLS:BOOL=OFF
|
||||
;;
|
||||
--enable-testing)
|
||||
build_testing=-DBUILD_TESTING:BOOL=ON
|
||||
;;
|
||||
--disable-testing)
|
||||
build_testing=-DBUILD_TESTING:BOOL=OFF
|
||||
;;
|
||||
--with-zlib)
|
||||
with_zlib=-DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=ON
|
||||
;;
|
||||
--with-zlib=*)
|
||||
xarg=`echo $1 | cut -d= -f2-`
|
||||
with_zlib="-DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=ON -DZLIB_ROOT=$xarg"
|
||||
;;
|
||||
--without-zlib)
|
||||
with_zlib=-DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=OFF
|
||||
;;
|
||||
--with-szlib)
|
||||
with_szlib=-DHDF5_ENABLE_SZIP_SUPPORT:BOOL=ON
|
||||
szlib_path="" # szlib is in default paths
|
||||
;;
|
||||
--with-szlib=*)
|
||||
xarg=`echo $1 | cut -d= -f2-`
|
||||
with_szlib="-DHDF5_ENABLE_SZIP_SUPPORT:BOOL=ON"
|
||||
szlib_path="SZIP_INSTALL=$xarg"
|
||||
;;
|
||||
--without-szlib)
|
||||
with_szlib=-DHDF5_ENABLE_SZIP_SUPPORT:BOOL=OFF
|
||||
szlib_path="" # reset the path
|
||||
;;
|
||||
--njobs=*)
|
||||
njobs=`echo $1 | cut -d= -f2-`
|
||||
;;
|
||||
--enable-verbose)
|
||||
vflag=1
|
||||
;;
|
||||
--disable-verbose)
|
||||
vflag=0
|
||||
;;
|
||||
--help)
|
||||
# print the detail help page and exit
|
||||
HELP
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
echo "Unknown options: $1"
|
||||
HELP
|
||||
exit 1
|
||||
;;
|
||||
--enable-fortran)
|
||||
build_fortran=-DHDF5_BUILD_FORTRAN:BOOL=ON
|
||||
;;
|
||||
--disable-fortran)
|
||||
build_fortran=-DHDF5_BUILD_FORTRAN:BOOL=OFF
|
||||
;;
|
||||
--enable-cxx)
|
||||
build_cpp_lib=-DHDF5_BUILD_CPP_LIB:BOOL=ON
|
||||
;;
|
||||
--disable-cxx)
|
||||
build_cpp_lib=-DHDF5_BUILD_CPP_LIB:BOOL=OFF
|
||||
;;
|
||||
--enable-hl)
|
||||
build_hl_lib=-DHDF5_BUILD_HL_LIB:BOOL=ON
|
||||
;;
|
||||
--disable-hl)
|
||||
build_hl_lib=-DHDF5_BUILD_HL_LIB:BOOL=OFF
|
||||
;;
|
||||
--enable-shared)
|
||||
shared_lib=-DBUILD_SHARED_LIBS:BOOL=ON
|
||||
;;
|
||||
--disable-shared)
|
||||
shared_lib=-DBUILD_SHARED_LIBS:BOOL=OFF
|
||||
;;
|
||||
--enable-tools)
|
||||
build_tools=-DHDF5_BUILD_TOOLS:BOOL=ON
|
||||
;;
|
||||
--disable-tools)
|
||||
build_tools=-DHDF5_BUILD_TOOLS:BOOL=OFF
|
||||
;;
|
||||
--enable-testing)
|
||||
build_testing=-DBUILD_TESTING:BOOL=ON
|
||||
;;
|
||||
--disable-testing)
|
||||
build_testing=-DBUILD_TESTING:BOOL=OFF
|
||||
;;
|
||||
--with-zlib)
|
||||
with_zlib=-DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=ON
|
||||
;;
|
||||
--with-zlib=*)
|
||||
xarg=`echo $1 | cut -d= -f2-`
|
||||
with_zlib="-DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=ON -DZLIB_ROOT=$xarg"
|
||||
;;
|
||||
--without-zlib)
|
||||
with_zlib=-DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=OFF
|
||||
;;
|
||||
--with-szlib)
|
||||
with_szlib=-DHDF5_ENABLE_SZIP_SUPPORT:BOOL=ON
|
||||
szlib_path="" # szlib is in default paths
|
||||
;;
|
||||
--with-szlib=*)
|
||||
xarg=`echo $1 | cut -d= -f2-`
|
||||
with_szlib="-DHDF5_ENABLE_SZIP_SUPPORT:BOOL=ON"
|
||||
szlib_path="SZIP_INSTALL=$xarg"
|
||||
;;
|
||||
--without-szlib)
|
||||
with_szlib=-DHDF5_ENABLE_SZIP_SUPPORT:BOOL=OFF
|
||||
szlib_path="" # reset the path
|
||||
;;
|
||||
--njobs=*)
|
||||
njobs=`echo $1 | cut -d= -f2-`
|
||||
;;
|
||||
--enable-verbose)
|
||||
vflag=1
|
||||
;;
|
||||
--disable-verbose)
|
||||
vflag=0
|
||||
;;
|
||||
--help)
|
||||
# print the detail help page and exit
|
||||
HELP
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
echo "Unknown options: $1"
|
||||
HELP
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user