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