Skip to content
Snippets Groups Projects
Unverified Commit 87aeacfc authored by Tomáš Pecka's avatar Tomáš Pecka
Browse files

extra: Remove snapshot build type from build.sh

We don't use it anymore.
parent 0361ad85
No related branches found
No related tags found
1 merge request!209Support for aql library and aqlrc
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment