diff --git a/bin/gen-status.sh b/bin/gen-status.sh index d5d71262a..93e183864 100755 --- a/bin/gen-status.sh +++ b/bin/gen-status.sh @@ -104,7 +104,7 @@ export LC_ALL="C" # set variables referenced in the usage message # -export VERSION="2.0.1 2025-08-23" +export VERSION="2.1.0 2025-11-29" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -951,28 +951,6 @@ fi export RULES_HTML="$NEXT_DIR/rules.html" -# determine the guidelines.md markdown file -# -export GUIDELINES_MD="$NEXT_DIR/guidelines.md" -if [[ ! -e $GUIDELINES_MD ]]; then - echo "$0: ERROR: guidelines.md does not exist: $GUIDELINES_MD" 1>&2 - exit 1 -fi -if [[ ! -f $GUIDELINES_MD ]]; then - echo "$0: ERROR: guidelines.md is not a regular file: $GUIDELINES_MD" 1>&2 - exit 1 -fi -if [[ ! -r $GUIDELINES_MD ]]; then - echo "$0: ERROR: guidelines.md is not an readable file: $GUIDELINES_MD" 1>&2 - exit 1 -fi -if [[ ! -s $GUIDELINES_MD ]]; then - echo "$0: ERROR: guidelines.md is not an non-empty readable file: $GUIDELINES_MD" 1>&2 - exit 1 -fi -export GUIDELINES_HTML="$NEXT_DIR/guidelines.html" - - # determine the rules hdr file # export RULES_HDR="$INC_PATH/rules.$CONTEST_STATUS.hdr" @@ -994,27 +972,6 @@ if [[ ! -s $RULES_HDR ]]; then fi -# determine the guidelines hdr file -# -export GUIDELINES_HDR="$INC_PATH/guidelines.$CONTEST_STATUS.hdr" -if [[ ! -e $GUIDELINES_HDR ]]; then - echo "$0: ERROR: guidelines hdr file does not exist: $GUIDELINES_HDR" 1>&2 - exit 1 -fi -if [[ ! -f $GUIDELINES_HDR ]]; then - echo "$0: ERROR: guidelines hdr file is not a regular file: $GUIDELINES_HDR" 1>&2 - exit 1 -fi -if [[ ! -r $GUIDELINES_HDR ]]; then - echo "$0: ERROR: guidelines hdr file is not an readable file: $GUIDELINES_HDR" 1>&2 - exit 1 -fi -if [[ ! -s $GUIDELINES_HDR ]]; then - echo "$0: ERROR: guidelines hdr file is not an non-empty readable file: $GUIDELINES_HDR" 1>&2 - exit 1 -fi - - # -N stops early before any processing is performed # if [[ -n $DO_NOT_PROCESS ]]; then @@ -1055,7 +1012,7 @@ if [[ $V_FLAG -ge 3 ]]; then echo "$0: debug[3]: temporary rules.md file: $TMP_RULES_MD" 1>&2 fi if [[ -z $NOOP ]]; then - trap 'rm -f $TMP_STATUS_JSON $TMP_RULES_MD $TMP_GUIDELINES_MD; exit' 0 1 2 3 15 + trap 'rm -f $TMP_STATUS_JSON $TMP_RULES_MD; exit' 0 1 2 3 15 rm -f "$TMP_RULES_MD" if [[ -e $TMP_RULES_MD ]]; then echo "$0: ERROR: cannot remove temporary rules.md file: $TMP_RULES_MD" 1>&2 @@ -1071,29 +1028,6 @@ elif [[ $V_FLAG -ge 3 ]]; then fi -# create a temporary guidelines.md file -# -export TMP_GUIDELINES_MD=".tmp.$NAME.GUIDELINES_MD.$$.tmp" -if [[ $V_FLAG -ge 3 ]]; then - echo "$0: debug[3]: temporary guidelines.md file: $TMP_GUIDELINES_MD" 1>&2 -fi -if [[ -z $NOOP ]]; then - trap 'rm -f $TMP_STATUS_JSON $TMP_RULES_MD $TMP_GUIDELINES_MD; exit' 0 1 2 3 15 - rm -f "$TMP_GUIDELINES_MD" - if [[ -e $TMP_GUIDELINES_MD ]]; then - echo "$0: ERROR: cannot remove temporary guidelines.md file: $TMP_GUIDELINES_MD" 1>&2 - exit 12 - fi - :> "$TMP_GUIDELINES_MD" - if [[ ! -e $TMP_GUIDELINES_MD ]]; then - echo "$0: ERROR: cannot create temporary guidelines.md file: $TMP_GUIDELINES_MD" 1>&2 - exit 13 - fi -elif [[ $V_FLAG -ge 3 ]]; then - echo "$0: debug[3]: because of -n, temporary guidelines.md file is not used: $TMP_GUIDELINES_MD" 1>&2 -fi - - # generate the temporary status.json file # # In this stage, we use the date of the actual status.json file. @@ -1297,95 +1231,10 @@ elif [[ $V_FLAG -ge 3 ]]; then fi -# update guidelines.md -# -if [[ -z $NOOP ]]; then - - # form a new guidelines.md - # - cat "$GUIDELINES_HDR" > "$TMP_GUIDELINES_MD" - status="$?" - if [[ $status -ne 0 ]]; then - echo "$0: ERROR: failed to cat $GUIDELINES_HDR > $TMP_GUIDELINES_MD, error code: $status" 1>&2 - exit 29 - fi - sed -e '1,/^/d' \ - "$GUIDELINES_MD" >> "$TMP_GUIDELINES_MD" - status="$?" - if [[ $status -ne 0 ]]; then - echo "$0: ERROR: failed to sed -e '1,//d' $GUIDELINES_MD >> $TMP_GUIDELINES_MD failed," \ - "error code: $status" 1>&2 - exit 30 - fi - - # update guidelines.md if different or if guidelines.html is missing - # - if [[ -s "$GUIDELINES_HTML" ]] && cmp -s "$TMP_GUIDELINES_MD" "$GUIDELINES_MD"; then - - # case: guidelines.md did not change - # - if [[ $V_FLAG -ge 5 ]]; then - echo "$0: debug[5]: guidelines.md file did not change: $GUIDELINES_MD" 1>&2 - fi - - else - - # case: guidelines.md changed, update the file - # - if [[ $V_FLAG -ge 5 ]]; then - echo "$0: debug[5]: mv -f -- $TMP_GUIDELINES_MD $GUIDELINES_MD" 1>&2 - fi - if [[ $V_FLAG -ge 3 ]]; then - mv -f -v -- "$TMP_GUIDELINES_MD" "$GUIDELINES_MD" - status="$?" - else - mv -f -- "$TMP_GUIDELINES_MD" "$GUIDELINES_MD" - status="$?" - fi - if [[ $status -ne 0 ]]; then - echo "$0: ERROR: mv -f -- $TMP_GUIDELINES_MD $GUIDELINES_MD filed, error code: $status" 1>&2 - elif [[ $V_FLAG -ge 1 ]]; then - echo "$0: debug[1]: built replaced guidelines.md: $GUIDELINES_MD" 1>&2 - fi - if [[ ! -s $GUIDELINES_MD ]]; then - echo "$0: ERROR: not a non-empty guidelines.md file: $GUIDELINES_MD" 1>&2 - exit 31 - fi - - # use the md2html.sh tool to form the guidelines.html file, unless -n - # - # We force use of "-m next/guidelines.md" because we want both "make gen_status" - # and "make gen_top_html" to produce the same file content. - # - if [[ $V_FLAG -ge 1 ]]; then - echo "$0: debug[1]: about to run: $MD2HTML_SH ${TOOL_OPTION[*]}" \ - "-m next/guidelines.md -U $SITE_URL/$GUIDELINES_HTML --" \ - "next/guidelines.md $GUIDELINES_HTML" 1>&2 - fi - "$MD2HTML_SH" "${TOOL_OPTION[@]}" \ - -m next/guidelines.md -U "$SITE_URL/$GUIDELINES_HTML" -- \ - next/guidelines.md "$GUIDELINES_HTML" - status="$?" - if [[ $status -ne 0 ]]; then - echo "$0: ERROR: md2html.sh: $MD2HTML_SH ${TOOL_OPTION[*]}" \ - "-m next/guidelines.md -U $SITE_URL/$GUIDELINES_HTML --" \ - "next/guidelines.md $GUIDELINES_HTML" \ - "failed, error: $status" 1>&2 - exit 32 - elif [[ $V_FLAG -ge 3 ]]; then - echo "$0: debug[3]: guidelines.md now up to date: $GUIDELINES_MD" 1>&2 - fi - fi - -elif [[ $V_FLAG -ge 3 ]]; then - echo "$0: debug[3]: because of -n, guidelines.md was not updated: $GUIDELINES_MD" 1>&2 -fi - - # file cleanup # if [[ -z $NOOP ]]; then - rm -f -- "$TMP_STATUS_JSON" "$TMP_GUIDELINES_MD" "$TMP_RULES_MD" + rm -f -- "$TMP_STATUS_JSON" "$TMP_RULES_MD" elif [[ $V_FLAG -ge 3 ]]; then echo "$0: debug[3]: because of -n, disabled: rm -f -- $TMP_STATUS_JSON" 1>&2 fi diff --git a/inc/guidelines.closed.hdr b/inc/guidelines.closed.hdr deleted file mode 100644 index c6308c625..000000000 --- a/inc/guidelines.closed.hdr +++ /dev/null @@ -1,28 +0,0 @@ - - -# The IOCCC is closed - -The IOCCC is **NOT** accepting new submissions at this time. See the -[IOCCC winning entries page](../years.html) for the entries that have won the -IOCCC in the past. - -These guidelines are a **TENTATIVE proposal** for the next IOCCC -and are **likely be to be updated** before the next IOCCC. - -See our -FAQ on "[rules, guidelines, tools feedback](../faq.html#feedback)" -as well as our -FAQ on "[about asking questions](../faq.html#question)" -about these guidelines. You might also find the FAQ in general useful, especially the -FAQ on "[how to enter the IOCCC](../quick-start.html#enter)". - -Watch both [the IOCCC status page](../status.html) and the -[@IOCCC mastodon feed](https://fosstodon.org/@ioccc) for information about -future IOCCC openings. - -**HINT to mastodon users**: You may wish to refresh the [@IOCCC -mastodon feed](https://fosstodon.org/@ioccc) page and/or mastodon -app from time to time to view IOCCC mastodon updates. - - - diff --git a/inc/guidelines.judging.hdr b/inc/guidelines.judging.hdr deleted file mode 100644 index 4227ae116..000000000 --- a/inc/guidelines.judging.hdr +++ /dev/null @@ -1,23 +0,0 @@ - - -# The guidelines for the IOCCC that just closed - -These guidelines are for the current IOCCC that is no longer open for new submissions. - -See the [IOCCC news](../news.html) and well as the -[IOCCC Mastodon](https://fosstodon.org/@ioccc) feed for updates -on the IOCCC judging process as well as for the announcement -of [who won the IOCCC](../years.html). - -**HINT to mastodon users**: You may wish to refresh the [@IOCCC -mastodon feed](https://fosstodon.org/@ioccc) page and/or mastodon -app from time to time to view IOCCC mastodon updates. - - -# The IOCCC is closed to new submissions - -The [IOCCC judges](../judges.html) are in the process of judging the submissions they received -while the IOCCC was open. - - - diff --git a/inc/guidelines.open.hdr b/inc/guidelines.open.hdr deleted file mode 100644 index 83fad5505..000000000 --- a/inc/guidelines.open.hdr +++ /dev/null @@ -1,35 +0,0 @@ - - -# Official IOCCC guidelines - -These guidelines are **OFFICIAL**. - -Unless some significant problem turns up (such as a need to delay -in when the IOCCC will close, or some major bug is discovered) they -will remain **OFFICIAL** for this IOCCC. - -See our -FAQ on "[rules, guidelines, tools feedback](../faq.html#feedback)" -as well as our -FAQ on "[about asking questions](../faq.html#question)" -about these guidelines. You might also find the FAQ in general useful, especially the -FAQ on "[how to enter the IOCCC](../quick-start.html#enter)". - -**SUGGESTION**: Watch both the [IOCCC news](../news.html) and the -[IOCCC Mastodon](https://fosstodon.org/@ioccc) feed for the latest news -about any _mentions_ changes. - -**HINT to mastodon users**: You may wish to refresh the [@IOCCC -mastodon feed](https://fosstodon.org/@ioccc) page and/or mastodon -app from time to time to view IOCCC mastodon updates. - - -# The IOCCC open for submissions - -See "[FAQ - How may I enter the IOCCC](https://www.ioccc.org/quick-start.html#enter)" -for information on how to register for the IOCCC, how to create a proper -bzip2 compressed tarball of your submission, and how to upload your -bzip2 compressed tarball to the IOCCC submit server. - - - diff --git a/inc/guidelines.pending.hdr b/inc/guidelines.pending.hdr deleted file mode 100644 index 697668313..000000000 --- a/inc/guidelines.pending.hdr +++ /dev/null @@ -1,31 +0,0 @@ - - -# WARNING: These guidelines are TENTATIVE - -One might think of them as a **beta** release for the IOCCC -that is about to open. - -**IMPORTANT**: All **tentative** [rules](rules.html) and [guidelines](guidelines.html) -are subject to change by the [IOCCC judges](../judges.html) at any time. -See both the [IOCCC news](../news.html) and the [IOCCC -Mastodon](https://fosstodon.org/@ioccc) feed as _sometimes_ the -[IOCCC judges](../judges.html) _mention_ changes there. - -See our -FAQ on "[rules, guidelines, tools feedback](../faq.html#feedback)" -as well as our -FAQ on "[about asking questions](../faq.html#question)" -about these guidelines. You might also find the FAQ in general useful, especially the -FAQ on "[how to enter the IOCCC](../quick-start.html#enter)". - - -# The IOCCC is pending - -While the IOCCC is not open yet, there is a tentative opening date for the next IOCCC. - -Comments and suggestions on these preliminary guidelines are welcome. See the -[FAQ](../faq.html#feedback) for how to suggest, correct or provide feedback -about these guidelines. - - - diff --git a/inc/guidelines.year.hdr b/inc/guidelines.year.hdr deleted file mode 100644 index b7749e9be..000000000 --- a/inc/guidelines.year.hdr +++ /dev/null @@ -1,7 +0,0 @@ - - -# WARNING: These guidelines are OUT OF DATE - -These guidelines are provided as a historic archive, only. - - diff --git a/next/guidelines.md b/next/guidelines.md index 061ef30a8..880c7f5ca 100644 --- a/next/guidelines.md +++ b/next/guidelines.md @@ -1,4 +1,3 @@ - # 29th International Obfuscated C Code Contest Official Guidelines