diff options
-rwxr-xr-x | vienna | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vienna b/vienna index dc83c14..1a52a7d 100755 --- a/vienna +++ b/vienna | |||
@@ -284,11 +284,12 @@ genpage() { # genpage PAGE... | |||
284 | genlist() { # genlist PERITEM_FUNC TEMPLATE_FILE PAGE... | 284 | genlist() { # genlist PERITEM_FUNC TEMPLATE_FILE PAGE... |
285 | peritem_func="$1" | 285 | peritem_func="$1" |
286 | template_file="$2" | 286 | template_file="$2" |
287 | tmpf="$TMPD/$1" | ||
287 | shift 2 || return 2 | 288 | shift 2 || return 2 |
288 | test -f "$template_file" || return 1 | 289 | test -f "$template_file" || return 1 |
289 | for FILE; do | 290 | for FILE; do |
290 | log genlist "$peritem_func: $template_file: $FILE" | 291 | log genlist "$peritem_func: $template_file: $FILE" |
291 | LINK="$DOMAIN${DOMAIN:+/}${1%.PAGE_RAW_EXT}" | 292 | LINK="$DOMAIN${DOMAIN:+/}${FILE%.$PAGE_RAW_EXT}" |
292 | "$peritem_func" "$FILE" | 293 | "$peritem_func" "$FILE" |
293 | done | expand "$template_file" | 294 | done | expand "$template_file" |
294 | } | 295 | } |