Add a "release" target to the makefile
This commit is contained in:
parent
a3050bad8a
commit
a9354a9052
1 changed files with 11 additions and 0 deletions
11
Makefile
11
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
|
||||
|
|
Loading…
Reference in a new issue