diff options
| author | Philipp Schafft <lion@lion.leolix.org> | 2017-05-07 13:29:52 +0000 |
|---|---|---|
| committer | Philipp Schafft <lion@lion.leolix.org> | 2017-05-07 13:29:52 +0000 |
| commit | 22e22e909ce51f676d441f6c73befe7b0dccfb36 (patch) | |
| tree | 5ecd5c02f8546eba79f649c6432fd4d0e8da318a /webgen | |
| parent | 90154c6d9d927b7e71d18ccf8798823dd5a0357e (diff) | |
Fix: Corrected dependency listing for =-type files
Diffstat (limited to 'webgen')
| -rwxr-xr-x | webgen | 22 |
1 files changed, 17 insertions, 5 deletions
@@ -165,16 +165,28 @@ list_dependencies() { *'.'*'.html') _mask=`echo "$1" | cut -d. -f1` _lang=`echo "$1" | cut -d. -f2` - _tpl=`ls -1 -- ?"$_mask.$_lang" 2> /dev/null` - if [ -z "$_tpl" ] - then + _tpl=`ls -1 -- ?"$_mask.$_lang" ="$_mask.$_lang".html 2> /dev/null` + if [ -z "$_tpl" ] + then _tpl=`ls -1 -- ?"$_mask" 2> /dev/null` - fi + fi [ "$LANGUAGE" = '' ] && LANGUAGE="$_lang" + case "$_tpl" in + '='*) + echo "$TPLS$_tpl" + return; + ;; + esac ;; *'.html') _mask=`echo "$1" | cut -d. -f1` - _tpl=`ls -1 -- ?"$_mask" 2> /dev/null` + _tpl=`ls -1 -- ?"$_mask" ="$_mask".html 2> /dev/null` + case "$_tpl" in + '='*) + echo "$TPLS$_tpl" + return; + ;; + esac ;; *) _tpl="=$1" |
