Skip to content

Commit

Permalink
Do even more absurd stuff to avoid github's terrible tarballs.
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Jones <[email protected]>
  • Loading branch information
vathpela committed Oct 21, 2014
1 parent 70030c8 commit 3683c69
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
*.S
efibootmgr-*.tar.*
core.*
efibootmgr*.zip
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,25 @@ test-archive:
@git archive --format=tar $(shell git branch | awk '/^*/ { print $$2 }') | ( cd /tmp/$(RELEASE_STRING)-tmp/ ; tar x )
@git diff | ( cd /tmp/$(RELEASE_STRING)-tmp/ ; patch -s -p1 -b -z .gitdiff )
@mv /tmp/$(RELEASE_STRING)-tmp/ /tmp/$(RELEASE_STRING)/
@dir=$$PWD; cd /tmp; tar -c --bzip2 -f $$dir/$(RELEASE_STRING).tar.bz2 $(RELEASE_STRING)
@dir=$$PWD; cd /tmp; tar -c --bzip2 -f $$dir/$(RELEASE_STRING).tar.bz2 $(RELEASE_STRING) && tar -c --gzip -f $$dir/$(RELEASE_STRING).tar.gz $(RELEASE_STRING) && zip -q -r $$dir/$(RELEASE_STRING).zip $(RELEASE_STRING)/
@rm -rf /tmp/$(RELEASE_STRING)
@echo "The archive is in $(RELEASE_STRING).tar.bz2"
@echo "The archive is in $(RELEASE_STRING).tar.gz"
@echo "The archive is in $(RELEASE_STRING).zip"

archive:
git tag -s $(GITTAG) refs/heads/master
@rm -rf /tmp/$(RELEASE_STRING) /tmp/$(RELEASE_STRING)-tmp
@mkdir -p /tmp/$(RELEASE_STRING)-tmp
@git archive --format=tar $(GITTAG) | ( cd /tmp/$(RELEASE_STRING)-tmp/ ; tar x )
@mv /tmp/$(RELEASE_STRING)-tmp/ /tmp/$(RELEASE_STRING)/
@dir=$$PWD; cd /tmp; tar -c --bzip2 -f $$dir/$(RELEASE_STRING).tar.bz2 $(RELEASE_STRING)
@dir=$$PWD; cd /tmp; tar -c --bzip2 -f $$dir/$(RELEASE_STRING).tar.bz2 $(RELEASE_STRING) && tar -c --gzip -f $$dir/$(RELEASE_STRING).tar.gz $(RELEASE_STRING) && zip -q -r $$dir/$(RELEASE_STRING).zip $(RELEASE_STRING)/
@rm -rf /tmp/$(RELEASE_STRING)
gpg -a -u $(SIGNING_KEY) --output $(RELEASE_STRING).tar.bz2.sign --detach-sig $(RELEASE_STRING).tar.bz2
gpg -a -u $(SIGNING_KEY) --output $(RELEASE_STRING).tar.bz2.sig --detach-sig $(RELEASE_STRING).tar.bz2
@echo "The archive is in $(RELEASE_STRING).tar.bz2"
@echo "The archive is in $(RELEASE_STRING).tar.gz"
@echo "The archive is in $(RELEASE_STRING).zip"
@echo "The archive signature is in $(RELEASE_STRING).tar.bz2.sig"

tarball: archive

Expand Down

0 comments on commit 3683c69

Please sign in to comment.