Add version info from git-describe

A new script, gen-version.sh, is now invoked from 'make version' to generate
the file VERSION. This file contains a version identifier generated by
git-describe and is included in the Makefile.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
Lars Hjemli
2007-06-18 09:42:10 +02:00
والد 4a0be58666
کامیت f69250358a
7فایلهای تغییر یافته به همراه27 افزوده شده و 16 حذف شده

4
gen-version.sh Executable file
مشاهده پرونده

@@ -0,0 +1,4 @@
v=$(git-describe --abbrev=4 HEAD | sed -e 's/-/./g')
test -z "$v" && exit 1
echo "CGIT_VERSION = $v"
echo "CGIT_VERSION = $v" > VERSION