summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-04 13:54:50 +0200
committerErich Eckner <git@eckner.net>2016-05-04 13:54:50 +0200
commitd4620b585bb8b4f55502d15c8d3c5ad7131519be (patch)
treee13c1639b024065c52572dc002ac2cd4ef717933
parentd37d686e6bc473cf1a816ac59865a520a14d4dc8 (diff)
downloadcrypt-expiry-check-4.0.4.tar.xz
neue Version: 4.0.4v4.0.4
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f9ef6a0..cb0f343 100644
--- a/Makefile
+++ b/Makefile
@@ -25,14 +25,14 @@ CRONDIR = /etc/cron.daily
BINDIR = /usr/bin
MANDIR = /usr/share/man
-VERSION = 4.0.3
+VERSION = 4.0.4
all: crypt-expiry-check crypt-expiry-check.cron crypt-expiry-check.8
%: %.in
sed "s/#VERSION#/$(VERSION)/; s@#CRONDIR#@$(CRONDIR)@; s@#BINDIR#@$(BINDIR)@; s@#ETCDIR#@$(ETCDIR)@" $< > $@
-.PHONY: install clean
+.PHONY: install dist clean
install: all
install -D -m0755 crypt-expiry-check.cron $(DESTDIR)$(CRONDIR)/crypt-expiry-check
@@ -43,4 +43,11 @@ install: all
clean:
rm -f crypt-expiry-check{,.cron,.8}
+dist: clean
+ git status --porcelain 2> /dev/null | grep -q "\S" && (git add .; git commit -m"neue Version: $(VERSION)") || true
+ git tag -d v$(VERSION) && git push origin --delete v$(VERSION) || true
+ git tag v$(VERSION)
+ git push --force
+ git push --tags
+
# End of file