BLFS: do not run git-version.sh if it does not exist
This commit is contained in:
parent
380c2c619a
commit
203e4c2697
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Reference in a new issue