[PATCH xrandr 2/3] Autotools: handle translated manpage #37612
taffit at debian.org
Thu May 26 16:57:09 PDT 2011
This is a second part in order to fix #37612: partial patch against the
current build system to handle them.
Still need to be added to the building process:
- call the translated-man target in man/ (that could be done only inside
a dist target, if you don't want to add an extra build dependency in
- appropriate cleanup and handling of copying translated manpages where
they belong during the build process.
Signed-off-by: David Prévot <taffit at debian.org>
I'm not really confident with Autotools, so I've not proposed a patch
that works out of the box, sorry about that.
On the po4a side: if a new man/po4a/po/$lang.po is added, the
corresponding man/$lang/xrandr.man will be build by calling the
translated-man target in man/ (no need to edit anything in
If an addenda (man/po4a/add_$lang/$lang.add) is provided, it will be
used (useful for translation credit), but it is not mandatory.
I used a build process like the one used in man-db: translated manpages
are handled in there own man/$lang/ directory. Since the manpage is
modified during the build process, it needs its own Makefile, so I added
it into the repository.
Some parts might be simplified (e.g. since the Makefile in man/$lang/ is
trivial, maybe could it be generated during the build process instead of
being stored in VCS, translated manpages could also be built directly in
the man/ directory).
I'm willing to provide more input on the po4a side, but would need a
better understanding or some help regarding the build process.
man/Makefile.am | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/man/Makefile.am b/man/Makefile.am
index 0dcc79d..024dc3e 100644
@@ -1,4 +1,13 @@
+# Define po4a command and config file
+PO4A = po4a
+PO4A_CONFIG = po4a/po4a.cfg
+# Create POT file and translated manpages
+ touch po4a/po/xrandr.pot
+ $(PO4A) --force --no-backups $(PO4A_CONFIG)
appmandir = $(APP_MAN_DIR)
appman_PRE = xrandr.man
appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX))
More information about the xorg-devel