summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-04 14:02:08 +0200
committerErich Eckner <git@eckner.net>2016-05-04 14:02:08 +0200
commit7f0922690dc51b8660957c169106c09f1f92b7df (patch)
treec06fcea7beaebf3f6707ae5faac7d221f450cafe
parentb0eb23c0930611889ed615bc2f431e30b35bbbbe (diff)
downloadshutdownasap-0.3.tar.xz
neue Version: 0.3v0.3
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2eb0c1e..908995d 100644
--- a/Makefile
+++ b/Makefile
@@ -24,14 +24,14 @@ ETCDIR = /etc
BINDIR = /usr/bin
MANDIR = /usr/share/man
-VERSION = 0.2
+VERSION = 0.3
all: shutdownasap shutdownasap.conf shutdownasap.8
%: %.in
sed "s/#VERSION#/$(VERSION)/; s@#BINDIR#@$(BINDIR)@; s@#ETCDIR#@$(ETCDIR)@" $< > $@
-.PHONY: install clean
+.PHONY: install dist clean
install: all
install -D -m0755 -t $(DESTDIR)$(BINDIR) shutdownasap
@@ -41,4 +41,11 @@ install: all
clean:
rm -f shutdownasap{,.8,.conf}
+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