summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-15 00:16:23 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-23 21:47:28 -0400
commit177929c2363d86ee17814f00d27e0dca4e327b40 (patch)
tree525b278c0bcde85b249916353b2316e0b4bff990
parentf75d75eb66308aed2e199ab82fdc2a99170e015c (diff)
meson: add git-contrib target
-rw-r--r--meson.build8
-rw-r--r--tools/meson-git-contrib.sh7
2 files changed, 15 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 86a04a70ed..035e2f0424 100644
--- a/meson.build
+++ b/meson.build
@@ -2269,3 +2269,11 @@ if git.found() and etags.found()
input : all_files,
command : [etags, '-o', '@OUTPUT@'] + all_files)
endif
+
+if git.found()
+ meson_git_contrib_sh = find_program('tools/meson-git-contrib.sh')
+ custom_target(
+ 'git-contrib',
+ output : 'git-contrib',
+ command : [meson_git_contrib_sh])
+endif
diff --git a/tools/meson-git-contrib.sh b/tools/meson-git-contrib.sh
new file mode 100644
index 0000000000..c9d3775bcf
--- /dev/null
+++ b/tools/meson-git-contrib.sh
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+
+git shortlog -s `git describe --abbrev=0`.. | \
+ cut -c8- | \
+ sed 's/ / /g' | \
+ awk '{ print $$0 "," }' | \
+ sort -u