From: Tomi Ollila Date: Mon, 5 Dec 2011 11:39:32 +0000 (+0200) Subject: make release: remove LATEST-$(PACKAGE)-* X-Git-Tag: 0.11_rc1~63 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2551c7013126964f5403ab8933e6f3ef524d1cb1;p=notmuch.git make release: remove LATEST-$(PACKAGE)-* The tar file of particular package (notmuch in this case) is named as $(PACKAGE)-$(VERSION).tar.gz. Therefore the best way to remove previous link to LATEST is to remove all files beginning with LATEST-$(PACKAGE)- and not relying how $(VERSION) string is constructed. --- diff --git a/Makefile.local b/Makefile.local index b4faada4..d699463b 100644 --- a/Makefile.local +++ b/Makefile.local @@ -122,7 +122,7 @@ release: verify-source-tree-and-version ifeq ($(REALLY_UPLOAD),yes) git push origin $(VERSION) cd releases && scp $(TAR_FILE) $(SHA1_FILE) $(GPG_FILE) $(RELEASE_HOST):$(RELEASE_DIR) - ssh $(RELEASE_HOST) "rm -f $(RELEASE_DIR)/LATEST-$(PACKAGE)-[0-9]* ; ln -s $(TAR_FILE) $(RELEASE_DIR)/LATEST-$(TAR_FILE)" + ssh $(RELEASE_HOST) "rm -f $(RELEASE_DIR)/LATEST-$(PACKAGE)-* ; ln -s $(TAR_FILE) $(RELEASE_DIR)/LATEST-$(TAR_FILE)" endif @echo "Please send a release announcement using $(PACKAGE)-$(VERSION).announce as a template."