# Parse command line input parameters
PREFIX=~/deal.ii-candi
PROCS=1
+CMD_PACKAGES=""
while [ -n "$1" ]; do
param="$1"
echo " -p <path>, --prefix=<path> set a different prefix path (default $PREFIX)"
echo " -j <N>, -j<N>, --PROCS=<N> compile with N processes in parallel (default $PROCS)"
echo " --platform=<platform> force usage of a particular platform file"
+ echo " --packages=\"pkg1 pkg2\" install the given list of packages instead of the default set in candi.cfg"
echo ""
echo "The configuration including the choice of packages to install is stored in candi.cfg, see README.md for more information."
exit 0
# replace '~' by $HOME
PREFIX=${PREFIX/#~\//$HOME\/}
;;
+
+ #####################################
+ # overwrite package list
+ --packages=*)
+ CMD_PACKAGES="${param#*=}"
+ ;;
#####################################
# Number of maximum processes to use
default PACKAGES_OFF=""
+if [ -n "$CMD_PACKAGES" ]; then
+ PACKAGES=$CMD_PACKAGES
+fi
+
################################################################################
# Check if project was specified correctly
if [ -d ${PROJECT} ]; then