commit: baba6164d1aa2fd4eee6b52ef10f70b999ee9393
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 30 05:39:15 2024 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Nov 30 10:18:27 2024 +0000
URL: https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=baba6164
Makefile: fix tarball generation
Signed-off-by: Sam James <sam <AT> gentoo.org>
Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index a935a98..5c483b8 100644
--- a/Makefile
+++ b/Makefile
@@ -15,8 +15,10 @@ PV = $(shell test -e .git && git describe)
P = crossdev-$(PV)
COMP = xz
dist:
- git archive --prefix=$(P)/ HEAD | sed 's:@CDEVPV@:$(PV):g' > $(P).tar
+ sed -i -e 's:@CDEVPV@:$(PV):g' crossdev
+ git archive --prefix=$(P)/ HEAD > $(P).tar
-$(COMP) -f $(P).tar
du -b $(P).tar*
+ sed -i -e 's:$(PV):@CDEVPV@:g' crossdev
.PHONY: all dist install