From 587b187b06cd200188314c95df34fdb592ce832c Mon Sep 17 00:00:00 2001 From: "ye.lu" Date: Fri, 4 Aug 2023 13:46:28 +0200 Subject: [PATCH] more polish for the build script. --- libs/build.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/libs/build.sh b/libs/build.sh index cd98c321c..3e6ac31b2 100755 --- a/libs/build.sh +++ b/libs/build.sh @@ -68,7 +68,8 @@ do numProcs=$(($numTotalProcs*2/3)) fi echo "NEW PROCESSES as ${numProcs}" ;; - h) printf -- "Helping Page: \n" + h) printf -- "\n\n\nHelping Page: \n" + printf -- "--------------------------------------------------------------\n" printf -- " Please specify which libs ( or all, -a ) you want to build\n" printf -- " you can specify within a dash, e.g.: -gtzfs to build \n" printf -- " without NETCDF and HDF5 \n" @@ -86,11 +87,11 @@ do printf -- "-p [cores] : how many [cores] to be used by make -j [cores] \n" printf -- " : default is 4 \n" printf -- "--------------------------------------------------------------\n" - printf -- " Example: -\n" - printf -- " ./build.sh -c clean the build directory -\n" - printf -- " ./build.sh -a build all the libs -\n" - printf -- " ./build.sh -gtzfs build without HDF5 and NetCDF -\n" - printf -- " ./build.sh -g -p 8 build the GSL with 8 processors -\n" + printf -- " Example: \n" + printf -- " ./build.sh -c clean the build directory \n" + printf -- " ./build.sh -a build all the libs \n" + printf -- " ./build.sh -gtzfs build without HDF5 and NetCDF \n" + printf -- " ./build.sh -g -p 8 build the GSL with 8 processors \n" printf -- "--------------------------------------------------------------\n" ifSkip=true ;; @@ -216,6 +217,6 @@ fi # cd $target/src/$dir/mptrac-chem \ # && ../bin/kpp chem.kpp && make lib && cp libkpp.a $target/lib && cp *.h $target/include -if [ $ifSkip = false ] || [$ifBuildAll = true ] ; then +if [ $ifSkip = false ] || [ $ifBuildAll = true ] ; then printf "All selected compilations are done.\n" fi