From 177929c2363d86ee17814f00d27e0dca4e327b40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sat, 15 Apr 2017 00:16:23 -0400 Subject: [PATCH] meson: add git-contrib target --- meson.build | 8 ++++++++ tools/meson-git-contrib.sh | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 tools/meson-git-contrib.sh 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