aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2022-05-22 04:57:52 +0200
committerTeddy Wing2022-05-22 04:57:52 +0200
commit07c5cefe39542ebb16061a125de497c26996e70a (patch)
tree56f27cb83e6dcd8cdd172160be7354e9821a359e
parent3b335bb401524a6a1a95270a2b15ad2c46842568 (diff)
downloadwajir-07c5cefe39542ebb16061a125de497c26996e70a.tar.bz2
Makefile: Add root directory prefix to release tarball
Put all files in the tarball in a `wajir_$(VERSION)` folder. Otherwise, MacPorts couldn't figure out where the root directory was.
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f5db4ac..776f189 100644
--- a/Makefile
+++ b/Makefile
@@ -62,8 +62,14 @@ bundle/bundled-local-projects/0000/wajir/wajir: bundle
pkg: wajir_$(VERSION).tar.bz2
wajir_$(VERSION).tar.bz2: bundle wajir.asd src/*.lisp
- git archive --output=wajir_$(VERSION).tar HEAD
- tar -rf wajir_$(VERSION).tar bundle
+ git archive \
+ --prefix=wajir_$(VERSION)/ \
+ --output=wajir_$(VERSION).tar \
+ HEAD
+ tar -r \
+ -s ,bundle,wajir_$(VERSION)/bundle, \
+ -f wajir_$(VERSION).tar \
+ bundle
bzip2 wajir_$(VERSION).tar