diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-17 12:54:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-17 12:54:23 +0300 |
commit | b399f265bd766484570c1a2bcc9823a32ac12f20 (patch) | |
tree | 14aa3eb9ef2655651eb74f7eefa99160612a1ce5 /build.sh | |
parent | 3b7a81c1b4e5edd259dafc40a89bd1e519fd6bd4 (diff) | |
download | plugin-b399f265bd766484570c1a2bcc9823a32ac12f20.tar.gz plugin-b399f265bd766484570c1a2bcc9823a32ac12f20.tar.bz2 plugin-b399f265bd766484570c1a2bcc9823a32ac12f20.tar.xz plugin-b399f265bd766484570c1a2bcc9823a32ac12f20.zip |
In build script add command line options.
./build.sh - build with sanity flags.
./build.sh old - build without special flags.
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -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 |