mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-23 22:42:14 +08:00
git-version: correct the workaround without git
This commit is contained in:
parent
8025137e7c
commit
49661ec8e5
@ -3,10 +3,13 @@
|
||||
if ! git status > /dev/null; then
|
||||
# Either it's not a git repository, or git is unavaliable.
|
||||
# Just workaround.
|
||||
echo "<!ENTITY version \"unknown\">" > version.ent
|
||||
echo "<!ENTITY versiond \"unknown-systemd\">" >> version.ent
|
||||
echo "<!ENTITY releasedate \"unknown\">" >> version.ent
|
||||
echo "<!ENTITY day \"??\">" > version.ent
|
||||
echo "<!ENTITY month \"??\">" >> version.ent
|
||||
echo "<!ENTITY year \"????\">" >> version.ent
|
||||
echo "<!ENTITY copyrightdate \"1999-2021\">" >> version.ent
|
||||
echo "<!ENTITY version \"unknown\">" >> version.ent
|
||||
echo "<!ENTITY releasedate \"unknown\">" >> version.ent
|
||||
echo "<!ENTITY pubdate \"unknown\">" >> version.ent
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user