From b399f265bd766484570c1a2bcc9823a32ac12f20 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 17 Nov 2014 12:54:23 +0300 Subject: In build script add command line options. ./build.sh - build with sanity flags. ./build.sh old - build without special flags. --- build.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'build.sh') 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 -- cgit v1.2.3-70-g09d2