]> j8takagi.net Git Repository - YACASL2.git/commitdiff
make gittagで、自動的にVERSIONファイルのパッチ番号をアップする機能を追加
authorj8takagi <j8takagi@nifty.com>
Thu, 25 Jul 2013 04:23:20 +0000 (13:23 +0900)
committerj8takagi <j8takagi@nifty.com>
Thu, 25 Jul 2013 04:23:20 +0000 (13:23 +0900)
Makefile

index 590022e54cbdd80cb849e260b57e0780ccc59f85..2cc1f044523ebb76d94136591e85e62f60ec6f3f 100644 (file)
--- 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