mirror of
https://github.com/systemd/systemd
synced 2024-07-21 10:17:21 +00:00
meson: add git-contrib target
This commit is contained in:
parent
f75d75eb66
commit
177929c236
|
@ -2269,3 +2269,11 @@ if git.found() and etags.found()
|
||||||
input : all_files,
|
input : all_files,
|
||||||
command : [etags, '-o', '@OUTPUT@'] + all_files)
|
command : [etags, '-o', '@OUTPUT@'] + all_files)
|
||||||
endif
|
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
|
||||||
|
|
7
tools/meson-git-contrib.sh
Normal file
7
tools/meson-git-contrib.sh
Normal 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
|
Loading…
Reference in a new issue