BLFS: do not run git-version.sh if it does not exist

This commit is contained in:
Pierre Labastie 2021-05-01 17:28:28 +02:00
parent 380c2c619a
commit 203e4c2697

View file

@ -212,10 +212,14 @@ $(BLFS_XML):
# Generate BLFS version from git: # Generate BLFS version from git:
version: version:
$(Q)cd $(BLFS_XML) && ./git-version.sh $(Q)cd $(BLFS_XML) && if [ -x git-version.sh ] ; then \
./git-version.sh; \
fi
lfs-version: lfs-version:
$(Q)cd $(LFS_XML) && ./git-version.sh $(Q)cd $(LFS_XML) && if [ -x git-version.sh ] ; then \
./git-version.sh; \
fi
# Clean up # Clean up