1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-26 08:55:18 +03:00

meson: rename target to update-man-rules

Same justification as for update-dbus-docs.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2021-01-27 09:10:25 +01:00
parent 4c890ad3cc
commit e3c368f63c
7 changed files with 14 additions and 16 deletions

View File

@ -44,7 +44,7 @@ available functionality:
7. Use `meson compile -C build hwdb-update` to automatically download and import the
PCI, USB and OUI databases into hwdb.
8. Use `meson compile -C build man/update-man-rules` to update the meson rules for
8. Use `meson compile -C build update-man-rules` to update the meson rules for
building man pages automatically from the docbook XML files included in
`man/`.

View File

@ -6,7 +6,7 @@ if [ -z "$1" ]; then
exit 1
fi
# make sure the rules have been regenerated (in case man/update-man-rules was just run)
# make sure the rules have been regenerated (in case update-man-rules was just run)
ninja -C "@BUILD_ROOT@" version.h
target="man/$1.html"

View File

@ -6,7 +6,7 @@ if [ -z "$1" ]; then
exit 1
fi
# make sure the rules have been regenerated (in case man/update-man-rules was just run)
# make sure the rules have been regenerated (in case update-man-rules was just run)
ninja -C "@BUILD_ROOT@" version.h
page="$(echo "$1" | sed 's/\./\\./')"

View File

@ -198,17 +198,6 @@ run_target(
############################################################
custom_target(
'update-man-rules',
output : 'update-man-rules',
command : ['sh', '-c',
'cd @0@ && '.format(meson.build_root()) +
'python3 @0@/tools/update-man-rules.py $(find @0@ -wholename "*/man/*.xml") >t && '.format(project_source_root) +
'mv t @0@/rules/meson.build'.format(meson.current_source_dir())],
depend_files : custom_entities_ent)
############################################################
configure_file(
input : 'man.in',
output : 'man',

View File

@ -2,7 +2,7 @@
# Do not edit. Generated by update-man-rules.py.
# Update with:
# ninja -C build man/update-man-rules
# ninja -C build update-man-rules
manpages = [
['binfmt.d', '5', [], 'ENABLE_BINFMT'],
['bootctl', '1', [], 'ENABLE_EFI'],

View File

@ -3624,6 +3624,15 @@ if dbus_docs.length() > 0
endif
endif
custom_target(
'update-man-rules',
output : 'update-man-rules',
command : ['sh', '-c',
'cd @0@ && '.format(meson.build_root()) +
'python3 @0@/tools/update-man-rules.py $(find @0@ -wholename "*/man/*.xml") >t && '.format(project_source_root) +
'mv t @0@/man/rules/meson.build'.format(meson.current_source_dir())],
depend_files : custom_entities_ent)
############################################################
watchdog_opt = service_watchdog == '' ? 'disabled' : service_watchdog

View File

@ -51,7 +51,7 @@ MESON_HEADER = '''\
# Do not edit. Generated by update-man-rules.py.
# Update with:
# ninja -C build man/update-man-rules
# ninja -C build update-man-rules
manpages = ['''
MESON_FOOTER = '''\