diff options
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" |
