build: Use -r for git ls-tree in make dist

Without this we may pack things like *.swp into the tarball
This commit is contained in:
Poltern 2024-08-18 21:53:18 +05:00
parent da40653bc5
commit fad6cea335

View File

@ -221,7 +221,7 @@ dist:
$(Q)DIST=/tmp/LFS-RELEASE ./git-version.sh $(REV) $(Q)DIST=/tmp/LFS-RELEASE ./git-version.sh $(REV)
$(Q)rm -f lfs-$$(</tmp/LFS-RELEASE).tar.xz $(Q)rm -f lfs-$$(</tmp/LFS-RELEASE).tar.xz
$(Q)tar cJf lfs-$$(</tmp/LFS-RELEASE).tar.xz \ $(Q)tar cJf lfs-$$(</tmp/LFS-RELEASE).tar.xz \
$(shell git ls-tree HEAD . --name-only) version.ent \ $(shell git ls-tree HEAD . --name-only -r) version.ent \
-C /tmp LFS-RELEASE \ -C /tmp LFS-RELEASE \
--transform "s,^,lfs-$$(</tmp/LFS-RELEASE)/," --transform "s,^,lfs-$$(</tmp/LFS-RELEASE)/,"
$(Q)echo "Generated XML tarball lfs-$$(</tmp/LFS-RELEASE).tar.xz" $(Q)echo "Generated XML tarball lfs-$$(</tmp/LFS-RELEASE).tar.xz"