From a9354a9052cc1394ce60b4449a0d19c4ca845eb4 Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 21 Mar 2014 00:50:07 +0100 Subject: [PATCH] Add a "release" target to the makefile --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Makefile b/Makefile index b4415e29..bd3b3a05 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ DATADIR=$(prefix)/share DOCDIR=$(DATADIR)/doc LOCALEDIR=$(DATADIR)/locale MANDIR=$(DATADIR)/man +TMPDIR=/tmp/ all: Makefile python3 setup.py build_ext --inplace @@ -32,4 +33,14 @@ doc: pot: xgettext src/*.py --from-code=utf-8 --keyword=_ -o locale/poezio.pot +release: + rm -fr $(TMPDIR)/poezio-$(version) + git clone $(PWD) $(TMPDIR)/poezio-$(version) + cd $(TMPDIR)/poezio-$(version) && \ + git checkout v$(version) && \ + make doc && \ + cd .. && \ + tar cJf poezio-$(version).tar.xz poezio-$(version) && \ + tar czf poezio-$(version).tar.gz poezio-$(version) + .PHONY : doc