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

It's not allowed to use "+" in id attributes etc.
This commit is contained in:
Xi Ruoyao 2024-01-19 12:23:30 +08:00
parent 8f7d945a66
commit fd02389a51
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -57,8 +57,8 @@ version="$rev"
versiond="$rev-systemd"
if [ "$(git diff HEAD | wc -l)" != "0" ]; then
version="$version+"
versiond="$versiond+"
version="$version-wip"
versiond="$versiond-wip"
fi
echo "<![ %sysv; [" > version.ent