summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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