File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 1-
21prefix ?= /usr
32bindir ?= ${prefix}/bin
4- datadir ?= ${prefix}/share/codespell
3+ datadir ?= ${prefix}/share/codesell
4+
5+ _VERSION := $(shell grep -e "VERSION = '[0-9]\.[0-9]" codespell.py | cut -f 3 -d ' ')
6+ VERSION = $(subst ',,$(_VERSION ) )
7+
8+ PHONY = all install git-tag-release
59
610all :
711 @echo " Use 'make install' setting prefix and DESTDIR as desired"
@@ -11,3 +15,17 @@ install:
1115 install -d ${DESTDIR}${datadir} ${DESTDIR}${bindir}
1216 install -m644 -t ${DESTDIR}${datadir} data/dictionary.txt data/linux-kernel.exclude
1317 install -m755 -t ${DESTDIR}${bindir} codespell.py
18+
19+ git-tag-release :
20+ git commit -a -m " codespell $( VERSION) "
21+ git tag -m " codespell $( VERSION) " -s v$(VERSION )
22+ git gc --prune=0
23+
24+ codespell-$(VERSION ) .tar.xz.asc : codespell-$(VERSION ) .tar.xz
25+ gpg --armor --detach-sign --output codespell-$(VERSION ) .tar.xz.asc codespell-$(VERSION ) .tar.xz
26+
27+ codespell-$(VERSION ) .tar.xz :
28+ git archive --format=tar --prefix codespell-$(VERSION ) / v$(VERSION ) | xz > codespell-$(VERSION ) .tar.xz
29+
30+ tar-sync : codespell-$(VERSION ) .tar.xz codespell-$(VERSION ) .tar.xz.asc
31+ scp $^ packages.profusion.mobi:/var/www/packages/codespell/
You can’t perform that action at this time.
0 commit comments