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>upstream
parent
4a0be58666
commit
f69250358a
@ -1,4 +1,5 @@ |
||||
# Files I don't care to see in git-status/commit |
||||
cgit |
||||
VERSION |
||||
*.o |
||||
*~ |
||||
|
@ -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 |
Loading…
Reference in new issue