From f69250358a74efa5d7d9c562b2cdd80fad1430f1 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Mon, 18 Jun 2007 09:42:10 +0200 Subject: 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 --- gen-version.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 gen-version.sh (limited to 'gen-version.sh') diff --git a/gen-version.sh b/gen-version.sh new file mode 100755 index 0000000..4c60f60 --- /dev/null +++ b/gen-version.sh @@ -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 -- cgit v1.2.3-70-g09d2