chiark / gitweb /
build-sys: create Makefile-man.am automatically
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 3 Feb 2013 03:47:47 +0000 (22:47 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Feb 2013 04:16:16 +0000 (23:16 -0500)
commit56ba3c78ae35065064c4289a0c8e22a81256af20
tree29587193349dce9f1b44a2b1787ec357179fb463
parent823eb4e64e88e1787a82f84539344ef530f381a8
build-sys: create Makefile-man.am automatically

man rules were repeating the same information in too many places,
which was error prone. Those rules can be easily generated from .xml
files. For efficiency and because python is not a required dependency,
Makefile-man.am is only regenerated when requested with

  make update-man-list

If no metadata in man/*.xml changed, this file should not change. So
only when a new man page or a new alias is added, this file should
show up in 'git diff'. The change should then be committed.

If the support for building from git without python was dropped, we
could drop Makefile-man.am from version control. This would also
increase the partial build time (since more stuff would be rebuild
whenever sources in man/*.xml would be modified), so it would probably
wouldn't be worth it.
40 files changed:
Makefile-man.am
Makefile.am
make-directive-index.py
make-man-index.py
make-man-rules.py [new file with mode: 0644]
man/binfmt.d.xml
man/bootchart.conf.xml
man/crypttab.xml
man/hostnamectl.xml
man/localectl.xml
man/loginctl.xml
man/logind.conf.xml
man/modules-load.d.xml
man/nss-myhostname.xml
man/sd-login.xml
man/sd-readahead.xml
man/sd_get_seats.xml
man/sd_login_monitor_new.xml
man/sd_pid_get_session.xml
man/sd_readahead.xml
man/sd_seat_get_active.xml
man/sd_session_is_active.xml
man/sd_uid_get_state.xml
man/systemd-binfmt.service.xml
man/systemd-bootchart.xml
man/systemd-cryptsetup-generator.xml
man/systemd-cryptsetup@.service.xml
man/systemd-hostnamed.service.xml
man/systemd-journal-gatewayd.service.xml
man/systemd-localed.service.xml
man/systemd-logind.service.xml
man/systemd-modules-load.service.xml
man/systemd-quotacheck.service.xml
man/systemd-random-seed-load.service.xml
man/systemd-readahead-replay.service.xml
man/systemd-timedated.service.xml
man/systemd-user-sessions.service.xml
man/systemd-vconsole-setup.service.xml
man/timedatectl.xml
man/vconsole.conf.xml