From fc7f5d259dbc13f834ff8265eabd0bf5992ece9a Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Sun, 14 Nov 2010 04:13:31 +0000 Subject: Added API overview for libroar --- webgen | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webgen b/webgen index 24fecd3..11b28de 100755 --- a/webgen +++ b/webgen @@ -75,10 +75,10 @@ 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` # 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]//'); + MENU=$(grep --no-filename -- "^$_tpl[^a-zA-Z0-9-]" '#menu-index'* | sed 's/^[^ \t]*[ \t]*[ \t]//'); [ "$MENU" = '' ] && MENU="$DEFAULT_MENU" { cat -- -$HEADER -- cgit v1.2.3