From 8a8cef72836e37f36d5bb5d1dabad392c2ee4e0c Mon Sep 17 00:00:00 2001 From: Shaun McCance Date: Sat, 20 Oct 2018 11:02:11 -0400 Subject: yelp-build: Support Mallard stacks --- tools/yelp-build.in | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/tools/yelp-build.in b/tools/yelp-build.in index 898325b..447eda9 100755 --- a/tools/yelp-build.in +++ b/tools/yelp-build.in @@ -154,13 +154,18 @@ yelp_paths_normalize () { yelp_cache_in_page () { fbase=$(basename "$1") + ext=$(echo "$fbase" | sed -e 's/.*\.//') fdir=$( (cd $(dirname "$1") && pwd) ) sdir=${fdir##${cache_site_root}}/ url=file://$(echo "$fdir/$fbase" | urlencode) if [ "x$cache_site" = "x1" ]; then siteattr=' site:dir="'"$sdir"'"' fi - echo '' + if [ "x$ext" = "xstack" ]; then + echo '' + else + echo '' + fi } yelp_cache_in_site () { @@ -171,7 +176,7 @@ yelp_cache_in_site () { fi fi done - for page in "$1"/*.page; do + for page in "$1"/*.page "$1"/*.stack; do if [ -e "$page" ]; then yelp_cache_in_page "$page" fi @@ -189,7 +194,7 @@ yelp_cache_in () { if [ "x$cache_site" = "x1" ]; then yelp_cache_in_site "$page" else - for sub in "$page"/*.page; do + for sub in "$page"/*.page "$page"/*.stack; do yelp_cache_in_page "$sub" done fi @@ -376,15 +381,17 @@ yelp_html_mal2html () { html_cache_url='file://'`echo "$html_cache_file" | urlencode` echo '' echo '' - echo '' + echo '' echo '' - echo '' + echo '' + echo '' echo '' echo '' echo ' ' echo '' echo '' echo '' + echo '' echo '' echo '' ) | (cd "$html_out" && xsltproc $html_profile \ -- cgit v1.2.1