From: Paul Hänsch Date: Tue, 20 Aug 2019 11:56:41 +0000 (+0200) Subject: changed some code layout, handle categories in separate directory X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=1b5fe5ec8e6ceb580ada4e0ff4fe3955c2457ec0;p=confetti changed some code layout, handle categories in separate directory --- diff --git a/cards/categories.css b/cards/categories/categories.css similarity index 100% rename from cards/categories.css rename to cards/categories/categories.css diff --git a/cards/categories.html.sh b/cards/categories/categories.html.sh similarity index 100% rename from cards/categories.html.sh rename to cards/categories/categories.html.sh diff --git a/cards/categories.sh b/cards/categories/categories.sh similarity index 100% rename from cards/categories.sh rename to cards/categories/categories.sh diff --git a/cards/edit_categories.sh b/cards/categories/edit_categories.sh similarity index 100% rename from cards/edit_categories.sh rename to cards/categories/edit_categories.sh diff --git a/cards/text_categories.sh b/cards/categories/text_categories.sh similarity index 100% rename from cards/text_categories.sh rename to cards/categories/text_categories.sh diff --git a/cards/update_categories.sh b/cards/categories/update_categories.sh similarity index 100% rename from cards/update_categories.sh rename to cards/categories/update_categories.sh diff --git a/cards/export_vcard.sh b/cards/export_card.sh similarity index 100% rename from cards/export_vcard.sh rename to cards/export_card.sh diff --git a/cards/main.cgi b/cards/index.cgi similarity index 100% rename from cards/main.cgi rename to cards/index.cgi diff --git a/index.cgi b/index.cgi index 170645f..43abf5d 100755 --- a/index.cgi +++ b/index.cgi @@ -40,8 +40,8 @@ yield_page() { | "${_EXEC}/cgilite/html-sh.sed" } -if [ -d "${_EXEC}/${_PATH}" -a -x "${_EXEC}/${_PATH}/main.cgi" ]; then - . "${_EXEC}/${_PATH}/main.cgi" +if [ -d "${_EXEC}/${_PATH}" -a -x "${_EXEC}/${_PATH}/index.cgi" ]; then + . "${_EXEC}/${_PATH}/index.cgi" elif [ ! -d "${_EXEC}/${_PATH}" -a -x "${_EXEC}/${_PATH}" ]; then . "${_EXEC}/${_PATH}" elif [ ! -x "${_EXEC}/${_PATH}" -a -r "${_EXEC}/${_PATH}" ]; then