summaryrefslogtreecommitdiffstats
path: root/build.sh
blob: 2016ef23c73ebedda86329f4f7fd0523cab5a2dd (plain)
1
2
3
4
5
6
7
8
9
10
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