Skip to content

Commit fa6947a

Browse files
authored
Merge pull request #1195 from xexyl/freeze
2 parents 01b8689 + 1f09e4c commit fa6947a

14 files changed

+687
-614
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ random_answers.*
4444
/test_ioccc/fnamchk
4545
/test_ioccc/.hostchk.*.work/
4646
/test_ioccc/.local.dir.tags
47-
test_ioccc/slot/good/workdir/
4847
/test_ioccc/tags
4948
/test_ioccc/test_JSON/
5049
/test_ioccc/test_ioccc.log

CHANGES.md

+29-4
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,37 @@ the longer warning to be sure that they know. As for `-Y` it really ought to be
1111
used only for the test script but even `-y` should be used with **EXTREME**
1212
caution.
1313

14-
It is hoped this is the last update to `mkiocccentry(1)` prior to the soft code
15-
freeze today.
14+
Add extra sanity checks in `check_submission_dir()`: it now checks towards the
15+
beginning if the required files exist (that is, the three user submitted files,
16+
not the JSON file as those don't exist yet, though it does check that they do
17+
not exist as dot files here would be an error) and are readable and if they are
18+
not size 0 (for Makefile and remarks.md - prog.c may be empty).
1619

17-
Update `MKIOCCCENTRY_VERSION` to `"1.2.36 2025-02-28"`.
20+
Updated some literal strings of the three required filenames (as above) to their
21+
macros in both mkiocccentry and txzchk.
1822

19-
TODO: finish work on the `chkentry_test.sh` script.
23+
Fixes in `chkentry` with checking if files exist or do not exist (depending on
24+
options) and also add checks for file sizes for certain files, namely Makefile,
25+
remarks.md (in non-winning mode) as well as index.html (in winning mode) and
26+
README.md (in winning mode).
27+
28+
Error messages were improved in `chkentry` as well though there are some places
29+
(the manifest check) where they could be improved (this would require lower
30+
level changes that we do not have time for before the freeze later today).
31+
32+
Sync [jparse repo](https://github.com/xexyl/jparse/) to `jparse/` for new util
33+
function (that uses its `file_size()` function) `is_empty()`. This is used in
34+
the update to `chkentry`.
35+
36+
More work on the `chkentry_test.sh` script. The script is in better shape so
37+
that when the directories are generated (they cannot be static due to version
38+
changes - at least without a new option) the script should hopefully be easily
39+
updated (though it depends maybe on how the new directories are generated).
40+
41+
Updated `MKIOCCCENTRY_VERSION` to `"1.2.36 2025-02-28"`.
42+
Updated `TXZCHK_VERSION` to `"1.1.15 2025-02-28"`.
43+
Updated `CHKENTRY_VERSION` to `"1.1.6 2025-02-28"`.
44+
Updated `CHKENTRY_TEST_VERSION` to `"1.1.1 2025-02-28"`.
2045

2146
Resequence exit codes in `jparse/util.c`. It appears that this was not done or
2247
something went wrong when doing so (as running `make seqcexit` updated the exit

Makefile

+20-10
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
#
33
# mkiocccentry and related tools - how to form an IOCCC submission
44
#
5-
# For the mkiocccentry utility:
5+
# For mkiocccentry:
66
#
7-
# Copyright (c) 2021-2025 by Landon Curt Noll. All Rights Reserved.
7+
# Copyright (c) 2021-2025 by Landon Curt Noll and Cody Boone Ferguson.
8+
# All Rights Reserved.
89
#
910
# Permission to use, copy, modify, and distribute this software and
1011
# its documentation for any purpose and without fee is hereby granted,
@@ -16,17 +17,26 @@
1617
# source works derived from this source
1718
# binaries derived from this source or from derived source
1819
#
19-
# LANDON CURT NOLL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
20-
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO
21-
# EVENT SHALL LANDON CURT NOLL BE LIABLE FOR ANY SPECIAL, INDIRECT OR
22-
# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
23-
# USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
24-
# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
25-
# PERFORMANCE OF THIS SOFTWARE.
20+
# THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
21+
# ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
22+
# AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
23+
# DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
24+
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
25+
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2626
#
27-
# chongo (Landon Curt Noll, http://www.isthe.com/chongo/index.html) /\oo/\
27+
# This tool was co-developed in 2021-2025 by Cody Boone Ferguson and Landon
28+
# Curt Noll:
29+
#
30+
# @xexyl
31+
# https://xexyl.net Cody Boone Ferguson
32+
# https://ioccc.xexyl.net
33+
# and:
34+
# chongo (Landon Curt Noll, http://www.isthe.com/chongo/index.html) /\oo/\
35+
#
36+
# "Because sometimes even the IOCCC Judges need some help." :-)
2837
#
2938
# Share and enjoy! :-)
39+
# -- Sirius Cybernetics Corporation Complaints Division, JSON spec department. :-)
3040
####
3141

3242
####

0 commit comments

Comments
 (0)