mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +00:00
git-version: Always skip creating version.ent if LFS-RELEASE exists
This commit is contained in:
parent
80da60f0c0
commit
b91b12adf3
@ -14,14 +14,13 @@ fi
|
||||
echo "<!ENTITY % sysv \"$SYSV\">" > conditional.ent
|
||||
echo "<!ENTITY % systemd \"$SYSTEMD\">" >> conditional.ent
|
||||
|
||||
if [ -e LFS-RELEASE ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if ! git status > /dev/null; then
|
||||
# Either it's not a git repository, or git is unavaliable.
|
||||
# Just workaround.
|
||||
|
||||
if [ -e LFS-RELEASE ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "<![ %sysv; [" > version.ent
|
||||
echo "<!ENTITY version \"unknown\">" >> version.ent
|
||||
echo "]]>" >> version.ent
|
||||
|
Loading…
Reference in New Issue
Block a user