a gopher interface forked from the popular cgit
cgit-70/gen-version.sh

4 lines
136 B

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