diff options
author | pgen <p.gen.progs@gmail.com> | 2015-11-19 23:28:29 +0100 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2015-11-21 10:51:51 +0100 |
commit | 0d0735b0d09178ca9098f9648198d9493241c8ae (patch) | |
tree | a57fce1710915252c8b19a7238bb8062fb1e46e3 /build.sh | |
parent | d2ff6494e7c9fa0365a5d0af4b2a07e75b044464 (diff) |
Put the code under autoconf control
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 11 |
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 |