mirror of
https://gitea.quitesimple.org/crtxcr/cgitsb
synced 2024-11-23 12:42:19 +01:00
f69250358a
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>
5 lines
136 B
Bash
Executable File
5 lines
136 B
Bash
Executable File
v=$(git-describe --abbrev=4 HEAD | sed -e 's/-/./g')
|
|
test -z "$v" && exit 1
|
|
echo "CGIT_VERSION = $v"
|
|
echo "CGIT_VERSION = $v" > VERSION
|