summaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..2016ef2
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+./configure "$@"
+
+[ -d .git ] && V=`git log -1 --pretty=format:-%h` || V=""
+
+sed "/VERSION/s/\$/ \"$V\"/" config.h > /tmp/config.h$$
+mv /tmp/config.h$$ config.h
+
+make
+
+exit 0