From 6f5bcccdd8b6cec3e5e3ac4343c8b36f5dde2fbd Mon Sep 17 00:00:00 2001 From: "Paul W. Frields" Date: Fri, 7 Sep 2007 16:52:46 +0000 Subject: Add packaging/ directory to xsltproc's search path for common functions --- bin/fdp-functions | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/fdp-functions b/bin/fdp-functions index 982154a..c56fac5 100644 --- a/bin/fdp-functions +++ b/bin/fdp-functions @@ -21,6 +21,7 @@ FDPPKGDIR="${FDPDIR}/docs-common/packaging" 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_worker_attribute() 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 @@ date() 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 -- cgit