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:
Xi Ruoyao 2024-08-12 19:19:32 +08:00
parent a18957940c
commit aa00b47601
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -212,7 +212,7 @@ dist:
$(Q)DIST=/tmp/LFS-RELEASE ./git-version.sh $(REV)
$(Q)rm -f 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 \
--transform "s,^,lfs-$$(</tmp/LFS-RELEASE)/,"
$(Q)echo "Generated XML tarball lfs-$$(</tmp/LFS-RELEASE).tar.xz"