From 05c841ee9ef57026d4ecb7290911d48a4fb1d387 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 23 Oct 2010 18:08:33 +0200 Subject: [PATCH] Makefile: added dist target to create distribution source tarball. --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 52f6075a..a7005f00 100644 --- a/Makefile +++ b/Makefile @@ -36,3 +36,12 @@ clean: $(MAKE) -C $$dir clean || exit 1; \ done -rm -f config.h config.mk + +dist: +ifndef REV + @echo "Please specify revision/tag with REV, i.e:" + @echo " > make REV=0.6.1 dist" + @exit 1 +endif + @echo "Building distribution tarball for revision/tag: $(REV) ..." + -@hg archive --rev $(REV) --type tgz ~/xbps-$(REV).tar.gz