From 4eb288b5e77da94af9bc434c5b20cd4e0d5f7049 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 9 Jan 2023 15:15:13 -0600 Subject: Change PAGE_RAW_EXT -> RAW_PAGE_EXTENSION I think it's more readable?? --- vienna | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vienna b/vienna index 253f5c8..907dddf 100755 --- a/vienna +++ b/vienna @@ -56,7 +56,7 @@ configure() { # Options PHTML_OPTIONS="${VIENNA_PHTML_OPTIONS:-expand entities}" # File extensions - PAGE_RAW_EXT="${VIENNA_PAGE_RAW_EXT:-htm}" + RAW_PAGE_EXTENSION="${VIENNA_RAW_PAGE_EXTENSION:-htm}" # Logging LOG=true ## Parse command line arguments @@ -133,15 +133,15 @@ main() { log vienna build # Build pages alias pagep=true - genpage *."$PAGE_RAW_EXT" || exit 2 + genpage *."$RAW_PAGE_EXTENSION" || exit 2 alias pagep=false # Build index alias indexp=true - genlist index_item "$INDEX_TEMPLATE" *."$PAGE_RAW_EXT" >"$OUTDIR/index.html" || exit 2 + genlist index_item "$INDEX_TEMPLATE" *."$RAW_PAGE_EXTENSION" >"$OUTDIR/index.html" || exit 2 alias indexp=false # Build feed alias feedp=true - genlist feed_item "$FEED_TEMPLATE" *."$PAGE_RAW_EXT" >"$OUTDIR/feed.xml" || exit 2 + genlist feed_item "$FEED_TEMPLATE" *."$RAW_PAGE_EXTENSION" >"$OUTDIR/feed.xml" || exit 2 alias feedp=false # Copy static files static * || exit 2 @@ -425,7 +425,7 @@ genpage() { # genpage PAGE... for FILE; do test -f "$FILE" || continue log genpage "$FILE" - outd="$OUTDIR/${FILE%.$PAGE_RAW_EXT}" + outd="$OUTDIR/${FILE%.$RAW_PAGE_EXTENSION}" outf="$outd/index.html" tmpf="$TEMPDIR/$FILE.tmp" META="$TEMPDIR/$FILE.meta" @@ -447,7 +447,7 @@ genlist() { # genlist PERITEM_FUNC TEMPLATE_FILE PAGE... while read -r FILE; do test -f "$FILE" || continue log genlist "$peritem_func:" "$FILE" - LINK="$URL_ROOT${URL_ROOT:+/}${FILE%.$PAGE_RAW_EXT}" + LINK="$URL_ROOT${URL_ROOT:+/}${FILE%.$RAW_PAGE_EXTENSION}" META="$TEMPDIR/$FILE.meta" "$peritem_func" "$FILE" done | expand "$template_file" -- cgit 1.4.1-21-gabe81