summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-04 14:05:33 +0200
committerErich Eckner <git@eckner.net>2016-05-04 14:05:33 +0200
commite1892ff9561add0a9417cb522530095bfb76850a (patch)
treeea0736de348413ce00d54170a407b20265ce04ae
parent566387963003b7bdac3a9af1909bce7bb72db686 (diff)
downloadhardlinkedBackups-e1892ff9561add0a9417cb522530095bfb76850a.tar.xz
neue Version: 1.0.2v1.0.2
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c9ab06d..da68d41 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,7 @@ all: hardlinkedbackups.8 backup lastBackups
%: %.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) backup lastBackups
@@ -42,4 +42,11 @@ install: all
clean:
rm -f backup lastBackups hardlinkedbackups.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