Skip to content

Commit 2a0ad93

Browse files
committed
Improved makefile
1 parent 4019101 commit 2a0ad93

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

MAINTAINER.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
roll

Makefile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
.PHONY: all install list profiles test version
1+
.PHONY: all install list readme release templates test version
22

33

44
PACKAGE := $(shell grep '^PACKAGE =' setup.py | cut -d "'" -f2)
55
VERSION := $(shell head -n 1 $(PACKAGE)/VERSION)
6+
MAINTAINER := $(shell head -n 1 MAINTAINER.md)
67

78

89
all: list
@@ -21,6 +22,18 @@ readme:
2122
md_toc -p README.md github --header-levels 3
2223
sed -i '/(#$(PACKAGE)-py)/,+2d' README.md
2324

25+
release:
26+
git checkout master
27+
git pull origin
28+
git fetch -p
29+
git commit -a -m 'v$(VERSION)'
30+
git tag -a v$(VERSION) -m 'v$(VERSION)'
31+
git push --follow-tags
32+
33+
templates:
34+
sed -i -E "s/@(\w*)/@$(MAINTAINER)/" .github/issue_template.md
35+
sed -i -E "s/@(\w*)/@$(MAINTAINER)/" .github/pull_request_template.md
36+
2437
test:
2538
pylama $(PACKAGE)
2639
tox

0 commit comments

Comments
 (0)