mirror of https://git.zx2c4.com/cgit/
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>lh/pretty-blob-view
parent
4a0be58666
commit
f69250358a
@ -1,4 +1,5 @@
|
|||||||
# Files I don't care to see in git-status/commit
|
# Files I don't care to see in git-status/commit
|
||||||
cgit
|
cgit
|
||||||
|
VERSION
|
||||||
*.o
|
*.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