summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2006-03-01 21:30:24 +0000
committerPaul W. Frields <stickster@gmail.com>2006-03-01 21:30:24 +0000
commit0c0efa73ca625b9829e2f8f6a71166a4a23a33d6 (patch)
tree0e76c96a1be24e3a70684fc924ccc9575ac70fc8
parentfda7dbebd3759f860f6455c417dbaf6c42fb9369 (diff)
downloadfedora-doc-utils-0c0efa73ca625b9829e2f8f6a71166a4a23a33d6.tar.gz
fedora-doc-utils-0c0efa73ca625b9829e2f8f6a71166a4a23a33d6.tar.xz
fedora-doc-utils-0c0efa73ca625b9829e2f8f6a71166a4a23a33d6.zip
Let's generate new entities for a document at build time, into a real
file. This particular fix lets the document author specify a "entities.xml" file in the PRI_LANG directory, which can be PO'd and translated like anything else. I'm thinking this should be one of the XMLFILES in the Makefile as well, right? In any case, there's a little bit of comment duplication but nothing that really matters, since the file shouldn't be entered in CVS anyway and will be rebuilt regularly.
-rw-r--r--Makefile.common7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile.common b/Makefile.common
index 12a59fc..a446267 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -766,8 +766,11 @@ define LOCALE_template
.PHONY: set-locale-${1}
set-locale-${1}::
- ${LN} -f -s ${FDPDIR}/docs-common/common/entities/entities-${1}.ent \
- ${LOCALE_ENTITIES}
+ ${XSLTPROC} --stringparam FDPCOMMONDIR ${FDPDIR}/docs-common/common \
+ ${FDPDIR}/docs-common/common/entities/entities.xsl \
+ $(shell test -f ${1}/entities.xml && echo "${1}/entities.xml")\
+ ${FDPDIR}/docs-common/common/entities/entities-${1}.xml \
+ > ${LOCALE_ENTITIES}
clean::
${RM} ${LOCALE_ENTITIES}