projects
/
YACASL2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
377686f
)
make gittagで、自動的にVERSIONファイルのパッチ番号をアップする機能を追加
author
j8takagi
<j8takagi@nifty.com>
Thu, 25 Jul 2013 04:23:20 +0000
(13:23 +0900)
committer
j8takagi
<j8takagi@nifty.com>
Thu, 25 Jul 2013 04:23:20 +0000
(13:23 +0900)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
590022e
..
2cc1f04
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-71,7
+71,7
@@
$(VERSIONFILES): VERSION
@$(SED) -e "s/@@VERSION@@/$(VERSION)/g" $@.version >$@
gittag:
@$(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
if ($(GIT) status -s | $(GREP) VERSION); then $(GIT) add VERSION; $(GIT) commit --amend --no-edit; fi
$(CAT) VERSION | $(XARGS) $(GIT) tag