meson: add git-contrib target

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-04-15 00:16:23 -04:00
parent f75d75eb66
commit 177929c236
2 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,7 @@
#!/bin/sh -e
git shortlog -s `git describe --abbrev=0`.. | \
cut -c8- | \
sed 's/ / /g' | \
awk '{ print $$0 "," }' | \
sort -u