git-version: Use "-wip" as the version suffix instead of "+" for changes not committed yet

It's not allowed to use "+" in XHTML id attributes etc.
This commit is contained in:
Xi Ruoyao 2024-01-19 16:07:13 +08:00
parent 9c69661841
commit ef6cb752ed
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -48,7 +48,7 @@ sha="$(git describe --abbrev=1)"
version=$(echo "$sha" | sed 's/-g[^-]*$//')
if [ "$(git diff HEAD | wc -l)" != "0" ]; then
version="$version+"
version="$version-wip"
fi
echo "<!ENTITY year \"$year\">" > version.ent