From be3ad21fbefbf47adaeaafebc9e8b3420d470548 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Sat, 10 May 2014 18:06:23 +0400 Subject: [PATCH] Add target to build "all-in-one" source tarball for Debian. --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 62d806a5..df3f35a9 100644 --- a/Makefile +++ b/Makefile @@ -72,4 +72,16 @@ package: -f -m "Andrey Smirnov " --description="Debian repository management tool" -C root/ . mv aptly_$(VERSION)_*.deb ~ +src-package: + rm -rf aptly-$(VERSION) + mkdir -p aptly-$(VERSION)/src/github.com/smira/aptly/ + cd aptly-$(VERSION)/src/github.com/smira/ && git clone https://github.com/smira/aptly && cd aptly && git checkout v$(VERSION) + cd aptly-$(VERSION)/src/github.com/smira/aptly && gom -production install + cd aptly-$(VERSION)/src/github.com/smira/aptly && find . -name .git -print | xargs rm -rf + cd aptly-$(VERSION)/src/github.com/smira/aptly && find . -name .bzr -print | xargs rm -rf + cd aptly-$(VERSION)/src/github.com/smira/aptly && find . -name .hg -print | xargs rm -rf + rm -rf aptly-$(VERSION)/src/github.com/smira/aptly/_vendor/{pkg,bin} + tar cyf aptly-$(VERSION)-src.tar.bz2 aptly-$(VERSION) + rm -rf aptly-$(VERSION) + .PHONY: coverage.out