|
@@ -35,12 +35,13 @@ apt-vendor.ent: ../apt-vendor.ent
|
|
|
cp -a ../apt-vendor.ent .
|
|
|
|
|
|
manpage-style.xsl: ../manpage-style.xsl
|
|
|
- sed "/<!-- LANGUAGE -->/ i\
|
|
|
-<xsl:param name=\"l10n.gentext.default.language\" select=\"'$(LC)'\" />" ../manpage-style.xsl > manpage-style.xsl
|
|
|
+ cp -a $< .
|
|
|
|
|
|
$($(LOCAL)-LIST) :: % : %.xml $(STYLESHEET) $(INCLUDES)
|
|
|
echo Creating man page $@
|
|
|
- $(XSLTPROC) -o $@ $(STYLESHEET) $< || exit 200 # why xsltproc doesn't respect the -o flag here???
|
|
|
+ $(XSLTPROC) \
|
|
|
+ --stringparam l10n.gentext.default.language $(LC) \
|
|
|
+ -o $@ $(STYLESHEET) $< || exit 200 # why xsltproc doesn't respect the -o flag here???
|
|
|
test -f $(subst .$(LC),,$@) || echo 'FIXME: xsltproc respects the -o flag now, workaround can be removed'
|
|
|
mv -f $(subst .$(LC),,$@) $@
|
|
|
|