From 2657eb9091259aee75f7f39c25886ac793a179ac Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sat, 11 May 2024 15:27:46 +0200 Subject: [PATCH] Tar excludes doc directory --- makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index dbfd9a7..c7a2eff 100644 --- a/makefile +++ b/makefile @@ -21,7 +21,10 @@ test: ./gradlew test $(TARNAME): - git ls-files -z | xargs -0 tar -czf $(TARNAME) + git archive --format=tar --prefix=$(DIRNAME)/ HEAD > intermediate.tar + tar -f intermediate.tar --delete $(DIRNAME)/doc + gzip -9 -c intermediate.tar > $(TARNAME) + rm intermediate.tar $(TARNAME).minisig: $(TARNAME) minisign -Sm $(TARNAME)