summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2006-03-04 01:28:47 +0000
committerTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2006-03-04 01:28:47 +0000
commitf1138cf115183a304e923bc2c78d22af855d94e5 (patch)
tree91baef843bb85e3ffdfdc928e8ae843d4072a173
parent5fef789402f19ec4348820a488f021f943133500 (diff)
downloadfedora-doc-utils-f1138cf115183a304e923bc2c78d22af855d94e5.tar.gz
fedora-doc-utils-f1138cf115183a304e923bc2c78d22af855d94e5.tar.xz
fedora-doc-utils-f1138cf115183a304e923bc2c78d22af855d94e5.zip
${PO2XML} is back!! You need the "kdesdk" RPM after all!! Sorry!!
Evidently, the XML merge mode of xml2po(1) is broken; at least I could never get it to work reliably. The worst bug is that it doesn't handle "&FOO;"-style entities reliably: sometimes they get substituted, even if the "-k" switch is used and often times they are simply dropped from the output XML. Boo! Using po2xml(1) doesn't fix everything, but it's a step.
-rw-r--r--Makefile.common8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile.common b/Makefile.common
index 557b51f..4bc4801 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -104,6 +104,7 @@ XMLFOPTS=-f $(FDPDIR)/docs-common/bin/xmlformat-fdp.conf
XMLLINT =xmllint
XML2PO =xml2po
MSGMERGE=msgmerge
+PO2XML =po2xml
LN =ln
#########################################################################
@@ -411,9 +412,10 @@ pot:: po/${DOCBASE}.pot
define XML_template
$(patsubst ${PRI_LANG}/%,${1}/%,${2}):: ${2} po/${1}.po
mkdir -p ${1}
- ${XML2PO} -k -p po/${1}.po ${2} >$$@
-endef
-
+# ${XML2PO} -k -p po/${1}.po ${2} >$$@
+ ${PO2XML} ${2} po/${1}.po >$$@
+ endef
+
$(foreach L,${OTHERS}, \
$(foreach F,${XMLFILES-${PRI_LANG}}, \
$(eval $(call XML_template,${L},${F}))))