docs-common Makefile.common,1.80,1.81

Paul W. Frields (pfrields) fedora-docs-commits at redhat.com
Wed Mar 1 21:30:33 UTC 2006


Author: pfrields

Update of /cvs/docs/docs-common
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv1521/docs-common

Modified Files:
	Makefile.common 
Log Message:
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.




Index: Makefile.common
===================================================================
RCS file: /cvs/docs/docs-common/Makefile.common,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -r1.80 -r1.81
--- Makefile.common	1 Mar 2006 00:11:09 -0000	1.80
+++ Makefile.common	1 Mar 2006 21:30:24 -0000	1.81
@@ -766,8 +766,11 @@
 .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}




More information about the Fedora-docs-commits mailing list