mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +03:00
meson: rename target to update-man-rules
Same justification as for update-dbus-docs.
This commit is contained in:
parent
4c890ad3cc
commit
e3c368f63c
@ -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/`.
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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/\./\\./')"
|
||||
|
@ -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',
|
||||
|
@ -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'],
|
||||
|
@ -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
|
||||
|
||||
|
@ -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 = '''\
|
||||
|
Loading…
Reference in New Issue
Block a user