summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-17 12:54:23 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-17 12:54:23 +0300
commitb399f265bd766484570c1a2bcc9823a32ac12f20 (patch)
tree14aa3eb9ef2655651eb74f7eefa99160612a1ce5
parent3b7a81c1b4e5edd259dafc40a89bd1e519fd6bd4 (diff)
downloadevol-hercules-b399f265bd766484570c1a2bcc9823a32ac12f20.tar.gz
evol-hercules-b399f265bd766484570c1a2bcc9823a32ac12f20.tar.bz2
evol-hercules-b399f265bd766484570c1a2bcc9823a32ac12f20.tar.xz
evol-hercules-b399f265bd766484570c1a2bcc9823a32ac12f20.zip
In build script add command line options.
./build.sh - build with sanity flags. ./build.sh old - build without special flags.
-rwxr-xr-xbuild.sh15
1 files changed, 13 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 2dcd225..7b59289 100755
--- a/build.sh
+++ b/build.sh
@@ -1,11 +1,22 @@
#!/bin/bash
+CMD="$1"
+
+if [[ -z "${CMD}" ]]; then
+ export CMD="default"
+fi
+
mkdir build
# this need for some outdated os
mkdir m4
autoreconf -i
cd build
-../configure --enable-sanitize
+if [[ "${CMD}" == "default" ]]; then
+ ../configure --enable-sanitize
+elif [[ "${CMD}" == "old" ]]; then
+ ../configure
+fi
make -j3
+export RET=$?
cd -
-exit $?
+exit $RET