diff --git a/extra/scripts/build.sh b/extra/scripts/build.sh index b7fd0c896a63de7b4710d6a8fcc6a3c1fc66640c..c6399906ead13549018c1b3b3980605cd5a90915 100755 --- a/extra/scripts/build.sh +++ b/extra/scripts/build.sh @@ -40,13 +40,12 @@ usage_and_exit() { Usage: $0 -d DIRECTORY -m MODE [-j THREADS] $0 debug [-j THREADS] ( shortcut for => $0 -d debug -m Debug [-j THREADS] ) $0 release [-j THREADS] ( shortcut for => $0 -d release -m Release [-j THREADS] ) - $0 snapshot [-j THREADS] ( shortcut for => $0 -d snapshot -m Snapshot [-j THREADS] ) Algorithms Library Core builder helper script. Arguments: -d DIRECTORY Build directory (relative to ALT root) - -m MODE 'Release' or 'Debug' or 'Snapshot' + -m MODE 'Release' or 'Debug' -j THREADS Number of build threads. Default: Number of CPU cores ($(grep -c processor /proc/cpuinfo)) -n Do not run tests EOF @@ -59,15 +58,12 @@ installed_or_exit "make" "ninja" # check if shortcut ARGS_SHORTCUT= -if [[ $# -ge 1 ]] && [[ $1 == "release" || $1 == "debug" || $1 == "snapshot" ]]; then +if [[ $# -ge 1 ]] && [[ $1 == "release" || $1 == "debug" ]]; then ARGS_SHORTCUT=1 if [[ $1 == "release" ]]; then BUILD_DIR="release" BUILD_MODE="Release" - elif [[ $1 == "snapshot" ]]; then - BUILD_DIR="snapshot" - BUILD_MODE="Snapshot" elif [[ $1 == "debug" ]]; then BUILD_DIR="debug" BUILD_MODE="Debug" @@ -92,8 +88,6 @@ while getopts "d:m:j:n" arg; do BUILD_MODE="Debug" elif [[ "$TMP" == "release" ]]; then BUILD_MODE="Release" - elif [[ "$TMP" == "snapshot" ]]; then - BUILD_MODE="Snapshot" else usage_and_exit fi