diff options
| author | Philipp Schafft <lion@lion.leolix.org> | 2017-04-30 23:21:36 +0000 |
|---|---|---|
| committer | Philipp Schafft <lion@lion.leolix.org> | 2017-05-01 10:00:55 +0000 |
| commit | 59fca8386f1d6982a404612a382d075ed43b993b (patch) | |
| tree | c0c232a73553ff266c963dac572ff1fa7894bcf8 | |
| parent | e502b3ea216e24cbffa98e441fea0ea66a4aafaa (diff) | |
FIx: Work around *.*.html not rebuilding ?tpl.lang templates
| -rwxr-xr-x | webgen | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -292,6 +292,12 @@ do *'.'*'.html') _mask=`echo "$1" | cut -d. -f1` _lang=`echo "$1" | cut -d. -f2` + _tpl=`ls -1 -- "$TPLS"/?"$_mask.$_lang" 2> /dev/null` + if [ -n "$_tpl" ] + then + _mask=`echo "$_tpl" | sed 's#^[^/]*//*.##'` + _lang='' + fi [ "$LANGUAGE" = '' ] && LANGUAGE="$_lang" TEMPLATES_PAGE="$_mask" TEMPLATES_DYN="$_mask" |
