diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-12-02 02:58:03 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-12-02 02:58:03 +0100 |
commit | e46f4c5723083f952b3e74d118252b4bf4e0b1ef (patch) | |
tree | fd6dd56ab15e9ac370a6458e05e14638ad40b2f6 | |
parent | 71b5da696cc59e22339b5db497032821e631a54f (diff) | |
download | mkinitcpio-e46f4c5723083f952b3e74d118252b4bf4e0b1ef.tar.gz mkinitcpio-e46f4c5723083f952b3e74d118252b4bf4e0b1ef.tar.xz |
build: use git-archive to create tarballs
Append generated files afterwards. This preserves symlinks, and probably
other things too.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -64,8 +64,9 @@ clean: dist: doc echo $(VERSION) > VERSION - git ls-files -z | xargs -0 \ - bsdtar -czf mkinitcpio-$(VERSION).tar.gz -s ,^,mkinitcpio-$(VERSION)/, VERSION $(MANPAGES) + git archive --format=tar --prefix=mkinitcpio-$(VERSION)/ -o mkinitcpio-$(VERSION).tar HEAD + bsdtar -rf mkinitcpio-$(VERSION).tar -s ,^,mkinitcpio-$(VERSION)/, $(MANPAGES) VERSION + gzip -9 mkinitcpio-$(VERSION).tar $(RM) VERSION version: |