mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03: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,
|
||||
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
|
||||
|
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 New Issue
Block a user