docs-common/bin fdp-functions,1.18,1.19

Paul W. Frields (pfrields) fedora-docs-commits at redhat.com
Fri Sep 7 16:52:48 UTC 2007


Author: pfrields

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

Modified Files:
	fdp-functions 
Log Message:
Add packaging/ directory to xsltproc's search path for common functions


Index: fdp-functions
===================================================================
RCS file: /cvs/docs/docs-common/bin/fdp-functions,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- fdp-functions	27 Aug 2006 23:26:09 -0000	1.18
+++ fdp-functions	7 Sep 2007 16:52:46 -0000	1.19
@@ -21,6 +21,7 @@
 PRI_LANG=${PRI_LANG:-"en_US"}
 RPMINFO=${RPMINFO:-"${PRI_LANG}/rpm-info.xml"}
 XSLTPROC=${XSLTPROC:-xsltproc}
+XSLTPROCOPTS=${XSLTPROCOPTS:-"--path ${FDPDIR}/docs-common/common/entities:${FDPDIR}/docs-common/packaging"}
 XMLFORMAT=${XMLFORMAT:-"${FDPBINDIR}/xmlformat"}
 XMLFOPTS=${XMLFOPTS:-"-f ${FDPBINDIR}/xmlformat-fdp.conf"}
 
@@ -59,12 +60,12 @@
 
 get_title()
 {
-    rpminfo_exists && ${XSLTPROC} "${FDPPKGDIR}/get-title.xsl" "${RPMINFO}"
+    rpminfo_exists && ${XSLTPROC} ${XSLTPROCOPTS} "${FDPPKGDIR}/get-title.xsl" "${RPMINFO}"
 }
 
 get_desc()
 {
-    rpminfo_exists && ${XSLTPROC} "${FDPPKGDIR}/get-desc.xsl" "${RPMINFO}"
+    rpminfo_exists && ${XSLTPROC} ${XSLTPROCOPTS} "${FDPPKGDIR}/get-desc.xsl" "${RPMINFO}"
 }
 
 version()
@@ -91,7 +92,7 @@
 	OPTS="--stringparam role $1"
     fi
     if [ -f "${RPMINFO}" ]; then
-	${XSLTPROC} ${OPTS} "${FDPPKGDIR}/doc-date.xsl" "$RPMINFO"
+	${XSLTPROC} ${XSLTPROCOPTS} ${OPTS} "${FDPPKGDIR}/doc-date.xsl" "$RPMINFO"
     else
 	echo -n TBD
     fi




More information about the docs-commits mailing list