From: Zbigniew Jędrzejewski-Szmek Date: Sat, 15 Apr 2017 04:16:23 +0000 (-0400) Subject: meson: add git-contrib target X-Git-Tag: v234~286^2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=177929c2363d86ee17814f00d27e0dca4e327b40;p=thirdparty%2Fsystemd.git meson: add git-contrib target --- diff --git a/meson.build b/meson.build index 86a04a70ed2..035e2f0424f 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 00000000000..c9d3775bcfa --- /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