summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-02 20:49:40 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-02 20:50:56 +0300
commit761a4a76acd6120bf45c0c2dd342c94261672470 (patch)
treebb64d4a15d4ce285895d4a5549f3b0514f8e7335 /build.sh
downloadparanucker-761a4a76acd6120bf45c0c2dd342c94261672470.tar.gz
paranucker-761a4a76acd6120bf45c0c2dd342c94261672470.tar.bz2
paranucker-761a4a76acd6120bf45c0c2dd342c94261672470.tar.xz
paranucker-761a4a76acd6120bf45c0c2dd342c94261672470.zip
Initial commit.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..6cc42ac
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,21 @@
+#!/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
+if [[ "${CMD}" == "sanitize" ]]; then
+ ../configure --enable-sanitize
+elif [[ "${CMD}" == "default" ]]; then
+ ../configure
+elif [[ "${CMD}" == "gprof" ]]; then
+ ../configure --enable-gprof
+fi
+make -j9