From 85d0b796aec97a4d84cb8cc82869839cadf0109b Mon Sep 17 00:00:00 2001 From: Shaun McCance Date: Wed, 2 Feb 2011 09:33:05 -0500 Subject: tools/yelp-build.in: Added -x for XSLT customizations --- tools/yelp-build.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tools/yelp-build.in b/tools/yelp-build.in index 444629b..99dbee5 100755 --- a/tools/yelp-build.in +++ b/tools/yelp-build.in @@ -109,6 +109,7 @@ yelp_usage_html () { echo "" echo "Options:" echo " -o OUT Output files in the directory OUT" + echo " -x CUSTOM Import the custom XSLT file CUSTOM" ) 1>&2 } @@ -158,6 +159,9 @@ yelp_cache () { } yelp_html_xsl_common () { + if [ "x$html_custom" != "x" ]; then + echo '' + fi echo '' echo ' ' echo ' ' @@ -436,6 +440,11 @@ yelp_html () { html_out="$1" shift ;; + "-x") + shift + html_custom="$1" + shift + ;; *) break ;; @@ -446,6 +455,11 @@ yelp_html () { exit 1 fi html_out=`(cd "$html_out" && pwd)` + if [ "x$html_custom" != "x" ]; then + html_custom_dir=`dirname "$html_custom"` + html_custom_dir=`(cd "$html_custom_dir" && pwd)` + html_custom="$html_custom_dir"/`basename "$html_custom"` + fi if [ "$#" = "0" ]; then yelp_usage_html exit 1 -- cgit v1.2.1