From: j8takagi Date: Thu, 25 Jul 2013 04:23:20 +0000 (+0900) Subject: make gittagで、自動的にVERSIONファイルのパッチ番号をアップする機能を追加 X-Git-Tag: v0.2p24~1 X-Git-Url: https://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df87524e5371db148ca2a691acffe680e20a9793;p=YACASL2.git make gittagで、自動的にVERSIONファイルのパッチ番号をアップする機能を追加 --- diff --git a/Makefile b/Makefile index 590022e..2cc1f04 100644 --- a/Makefile +++ b/Makefile @@ -71,7 +71,7 @@ $(VERSIONFILES): VERSION @$(SED) -e "s/@@VERSION@@/$(VERSION)/g" $@.version >$@ gittag: - patch=$(PATCH); while ($(GIT) tag | $(GREP) v$(VER)p$${patch}); do $(EXPR) $${patch} + 1; done; $(ECHO) v$(VER)p$${patch} >VERSION + patch=$(PATCH); while ($(GIT) tag | $(GREP) v$(VER)p$${patch}); do patch=`$(EXPR) $${patch} + 1`; done; $(ECHO) v$(VER)p$${patch} >VERSION if ($(GIT) status -s | $(GREP) VERSION); then $(GIT) add VERSION; $(GIT) commit --amend --no-edit; fi $(CAT) VERSION | $(XARGS) $(GIT) tag