summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2007-09-07 16:52:46 +0000
committerPaul W. Frields <stickster@gmail.com>2007-09-07 16:52:46 +0000
commit6f5bcccdd8b6cec3e5e3ac4343c8b36f5dde2fbd (patch)
treee74338fbacaec8b279b1e40352151f98f73ce78a
parent9b0d242612bb866143b986bfd204a0c30f565bd5 (diff)
downloadfedora-doc-utils-6f5bcccdd8b6cec3e5e3ac4343c8b36f5dde2fbd.tar.gz
fedora-doc-utils-6f5bcccdd8b6cec3e5e3ac4343c8b36f5dde2fbd.tar.xz
fedora-doc-utils-6f5bcccdd8b6cec3e5e3ac4343c8b36f5dde2fbd.zip
Add packaging/ directory to xsltproc's search path for common functions
-rw-r--r--bin/fdp-functions7
1 files changed, 4 insertions, 3 deletions
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