summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Schafft <lion@lion.leolix.org>2010-12-14 02:50:10 +0000
committerPhilipp Schafft <lion@lion.leolix.org>2017-03-27 02:08:56 +0000
commitd99a2006042155988b46ab2815033abe8ee0c1c6 (patch)
tree01798fffcaf84d3b6949222f4fe8fe21c340aea7
parentfc7f5d259dbc13f834ff8265eabd0bf5992ece9a (diff)
added specal section .ALL
-rwxr-xr-xwebgen2
1 files changed, 1 insertions, 1 deletions
diff --git a/webgen b/webgen
index 11b28de..cfbb914 100755
--- a/webgen
+++ b/webgen
@@ -75,7 +75,7 @@ proc_page() {
CLEANTPLNAME=$(echo "$_tpl" | sed 's/^[\-\+\~]//')
OF="$OUT"/"$CLEANTPLNAME""$PAGE_SUFFIX"
echo "Compiling $CLEANTPLNAME -> $OF"
- SECTIONS=`for _sec in $(grep --no-filename -- "^$_tpl[^a-zA-Z0-9-]" '#section-index'* | sed 's/^[^ \t]*[ \t]*[ \t]//'); do O=''; for i in $(tr . ' ' <<<"$_sec"); do O="$O.$i"; echo $O; done; done`
+ SECTIONS=`for _sec in $(grep --no-filename -- "^$_tpl[^a-zA-Z0-9-]" '#section-index'* | sed 's/^[^ \t]*[ \t]*[ \t]//'); do O=''; for i in $(tr . ' ' <<<"$_sec"); do O="$O.$i"; echo $O; done; done`' .ALL'
# echo "Sections: $SECTIONS"
SECTIONS_REGEX=$(for _sec in $SECTIONS; do echo "s/(section==$_sec:\([^)]*\):)/\1/g;"; done; echo "s/(section==.*:.*:)//g")
MENU=$(grep --no-filename -- "^$_tpl[^a-zA-Z0-9-]" '#menu-index'* | sed 's/^[^ \t]*[ \t]*[ \t]//');