Le 15/05/2012 15:33, Roger Leigh a écrit : > On Tue, May 15, 2012 at 12:46:08PM -0400, David Prévot wrote:
>> Indeed, simply running “po4a --destdir=../debian/build/man/ po4a.cfg” >> from the man directory builds everything where expected (even with >> “--srcdir=.”), but when run from the root directory, it builds them in >> both the --srcdir and the --destdir, so it may be a bug in po4a. As a >> workaround, you could remove the sloppy man/translated directory in the >> update-po rule, after the po4a call. > > We can do this as a workaround for now. […] > In general though, it breaks building from a read-only source tree > of building several diffrent builds from a common source tree, so > I would hope to be able to fix it. I thought about a bit less ugly workaround: “cd man && po4a $stuff” since this issue is not triggered if po4a is run with --srcdir=. (or implied). Another workaround could be to rewrite man/po4a.cfg to document the files path from the root directory (attached, but I haven't tested it: it may need extra care about $(builddir) in the Makefile call since it should now point the debian/build/ directory instead of debian/build/man/). I also took the liberty to simplify the addenda handling (they should now be added as man/addenda/$lang.add, Thomas should be able to provide one for his translation (and I will be happy to help if needed). Regards David
[po_directory] man/po/ [po4a_alias:man] man opt:"-M UTF-8 -L UTF-8" [type: man] man/authors.man $lang:man/translated/$lang/authors.man \ add_$lang:?man/addenda/$lang.add [type: man] man/copyright.man $lang:man/translated/$lang/copyright.man \ add_$lang:?man/addenda/$lang.add [type: man] man/schroot.1.man $lang:man/translated/$lang/schroot.1.man \ add_$lang:?man/addenda/$lang.add [type: man] man/schroot-setup.5.man $lang:man/translated/$lang/schroot-setup.5.man \ add_$lang:?man/addenda/$lang.add [type: man] man/schroot.conf.5.man lang:man/translated/$lang/schroot.conf.5.man \ add_$lang:?man/addenda/$lang.add [type: man] man/schroot-script-config.5.man $lang:man/translated/$lang/schroot-script-config.5.man \ add_$lang:?man/addenda/$lang.add [type: man] man/schroot-faq.7.man $lang:man/translated/$lang/schroot-faq.7.man \ add_$lang:?man/addenda/$lang.add [type: man] man/dchroot.1.man $lang:man/translated/$lang/dchroot.1.man \ add_$lang:?man/addenda/$lang.add [type: man] man/dchroot-dsa.1.man $lang:man/translated/$lang/dchroot-dsa.1.man \ add_$lang:?man/addenda/$lang.add # The following files could also be offered for translation, maybe separately #[type: man] csbuild.1.man $lang:man/translated/$lang/csbuild.1.man \ # add_$lang:?man/addenda/$lang.add
signature.asc
Description: OpenPGP digital signature