Skip to content

Commit

Permalink
more polish for the build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrogencl committed Aug 4, 2023
1 parent 7d34c96 commit 587b187
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions libs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
;;
Expand Down Expand Up @@ -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

0 comments on commit 587b187

Please sign in to comment.