From daf92e1f41834f9d219f5598f3033d71c4b60feb Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Fri, 14 Jun 2024 10:29:37 -0700 Subject: [PATCH 1/3] Typo fixes in bin/gen-status.sh --- bin/gen-status.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/gen-status.sh b/bin/gen-status.sh index b13ab46ea..a4ead8127 100755 --- a/bin/gen-status.sh +++ b/bin/gen-status.sh @@ -212,7 +212,7 @@ function output_modtime # output_status_json # -# write an status.json file to standard output (stdout) +# write a status.json file to standard output (stdout) # # usage: # output_status_json contest_status news.md status.json @@ -261,19 +261,19 @@ function output_status_json fi STATUS_PATH="$3" if [[ ! -e $STATUS_PATH ]]; then - echo "$0: ERROR: in output_status_json: status.json.html arg does not exist: $STATUS_PATH" 1>&2 + echo "$0: ERROR: in output_status_json: status.json arg does not exist: $STATUS_PATH" 1>&2 return 6 fi if [[ ! -f $STATUS_PATH ]]; then - echo "$0: ERROR: in output_status_json: status.json.html arg is not a file: $STATUS_PATH" 1>&2 + echo "$0: ERROR: in output_status_json: status.json arg is not a file: $STATUS_PATH" 1>&2 return 7 fi if [[ ! -r $STATUS_PATH ]]; then - echo "$0: ERROR: in output_status_json: status.json.html arg is not a readable file: $STATUS_PATH" 1>&2 + echo "$0: ERROR: in output_status_json: status.json arg is not a readable file: $STATUS_PATH" 1>&2 return 8 fi - # obtain news.md.html file modification date + # obtain news.md file modification date # NEWS_MD_MOD_DATE=$(output_modtime "$NEWS_MD_PATH") status="$?" From 0117ea080f0b481c09a45b09b4a6e315b38718a7 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Fri, 14 Jun 2024 10:30:37 -0700 Subject: [PATCH 2/3] Typo fixes in bin/status2html.sh --- bin/status2html.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/status2html.sh b/bin/status2html.sh index e25273054..030b7b150 100755 --- a/bin/status2html.sh +++ b/bin/status2html.sh @@ -432,7 +432,7 @@ esac echo "Comments and suggestions on these preliminary items are welcome, see [FAQ 0.5](faq.html#feedback)" \ "for information on how." ;; - open) echo "# The IOCCC open for submissions" + open) echo "# The IOCCC is open for submissions" echo echo "See the [IOCCC news](news.html) page for possible updates to rules, guidelines, tools and deadlines." echo @@ -463,12 +463,12 @@ esac echo "The IOCCC status is an unexpected status value: $CONTEST_STATUS" echo echo "This is a **BUG**, not a feature. Feel free to report it!" 1>&2 - echo "See the [GitHub issues page](https://github.com/ioccc-src/temp-test-ioccc/issues/new/choose}." 1>&2 + echo "See the [GitHub issues page](https://github.com/ioccc-src/temp-test-ioccc/issues/new/choose)." 1>&2 ;; esac echo - # write status.json content + # write status.json content to status.html # echo '# status.json' echo '```' From a5bb99edcc492e18a22acefad31931b2227e0578 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Fri, 14 Jun 2024 10:31:38 -0700 Subject: [PATCH 3/3] Bug fix bin/output-year-index.sh (unset variable) The PANDOC_WRAPPER did not have a default value which not only caused the help string to show something like: '(def: use )' but it meant one had to specify the option -p to specify the pandoc wrapper tool (which is bin/pandoc-wrapper.sh). --- bin/output-year-index.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/output-year-index.sh b/bin/output-year-index.sh index 9a41637b2..12f2a9f9e 100755 --- a/bin/output-year-index.sh +++ b/bin/output-year-index.sh @@ -127,6 +127,7 @@ export TOPDIR export DOCROOT_SLASH="../../" export REPO_URL="https://github.com/ioccc-src/temp-test-ioccc/blob/master" export SITE_URL="https://ioccc-src.github.io/temp-test-ioccc" +export PANDOC_WRAPPER="bin/pandoc-wrapper.sh" # set usage message #