mirror of
https://github.com/systemd/systemd.git
synced 2025-01-28 21:47:38 +03:00
Merge pull request #18365 from DaanDeMeyer/update-man-rules-mkosi
Fix update-man-rules usage with mkosi
This commit is contained in:
commit
172e8cf505
@ -217,16 +217,14 @@ endif
|
|||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
|
|
||||||
if git.found()
|
custom_target(
|
||||||
custom_target(
|
'update-man-rules',
|
||||||
'update-man-rules',
|
output : 'update-man-rules',
|
||||||
output : 'update-man-rules',
|
command : ['sh', '-c',
|
||||||
command : ['sh', '-c',
|
'cd @0@ && '.format(meson.build_root()) +
|
||||||
'cd @0@ && '.format(meson.build_root()) +
|
'python3 @0@/tools/update-man-rules.py $(find @0@ -wholename "*/man/*.xml") >t && '.format(project_source_root) +
|
||||||
'python3 @0@/tools/update-man-rules.py $(git ls-files ":/man/*.xml") >t && '.format(project_source_root) +
|
'mv t @0@/rules/meson.build'.format(meson.current_source_dir())],
|
||||||
'mv t @0@/rules/meson.build'.format(meson.current_source_dir())],
|
depend_files : custom_entities_ent)
|
||||||
depend_files : custom_entities_ent)
|
|
||||||
endif
|
|
||||||
|
|
||||||
############################################################
|
############################################################
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ if [ ! -f "$BUILDDIR"/build.ninja ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$BUILDDIR"
|
cd "$BUILDDIR"
|
||||||
ninja
|
ninja "$@"
|
||||||
if [ "$WITH_TESTS" = 1 ] ; then
|
if [ "$WITH_TESTS" = 1 ] ; then
|
||||||
for id in 1 2 3; do
|
for id in 1 2 3; do
|
||||||
getent group $id > /dev/null || groupadd -g $id testgroup$id
|
getent group $id > /dev/null || groupadd -g $id testgroup$id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user