sourcephile
/
git
/
haskell
/
symantic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
85b022c
)
Add GNUmakefile rule : tag.
author
Julien Moutinho
<julm+symantic@autogeree.net>
Sat, 1 Apr 2017 15:19:47 +0000
(17:19 +0200)
committer
Julien Moutinho
<julm+symantic@autogeree.net>
Sat, 1 Apr 2017 21:18:55 +0000
(23:18 +0200)
GNUmakefile
patch
|
blob
|
history
diff --git
a/GNUmakefile
b/GNUmakefile
index 322dc7ba4113ff74678c4c647636260bcdb4599c..d8a38460ae7a78057895dd6779d20e87bbeec065 100644
(file)
--- a/
GNUmakefile
+++ b/
GNUmakefile
@@
-15,6
+15,14
@@
clean: $(PKGS:=/clean)
%/clean:
cd $*; stack $(STACK_FLAGS) clean --full
+tag: $(PKGS:=/tag)
+%/tag:
+ cabal=$*/$*.cabal; \
+ name=$$(sed -ne 's/^name: *\(.*\)/\1/p' "$$cabal"); \
+ version=$$(sed -ne 's/^version: *\(.*\)/\1/p' "$$cabal"); \
+ git tag --merged | grep -Fqx "$$name-$$version" || \
+ git tag -s -m "$$name v$$version" $$name-$$version
+
.PHONY: stats
stats:
gitstats . $@