aboutsummaryrefslogtreecommitdiffstats
path: root/gen-version.sh (unfollow)
Commit message (Collapse)AuthorFilesLines
3 daysbuild: fix empty version on tagless clones; mark version -sl0pJason A. Dönerfield1-2/+6
gen-version.sh unconditionally overwrote the Makefile-provided version with `git describe` output, which is empty on a plain clone of the fork (no tags) — so cgit_version rendered blank in the footer and generator meta. Only override when describe yields something. Also bump the base version to v1.3.1-sl0p so the version string itself names the fork.
2014-02-05gen-version.sh: check if git is available before trying to call itFabien C1-1/+1
Some people may clone the cgit repository and compile within a sandbox or on another machine where git is not necessarily installed. When it happens, cgit is getting compiled with an empty version number. This commit fixes this.
2007-10-01gen-version.sh: don't sed the output from git describeLars Hjemli1-1/+1
Replacing '-' with '.' makes the version name slightly confusing, so lets stick with the unmodified output of git describe. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2007-09-03Rewrite the makefile + gen-version.shLars Hjemli1-4/+20
The old files were simply broken, hopefully the new ones will work out somewhat better. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
2007-06-18Add version info from git-describeLars Hjemli1-0/+4
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>