From db6fd9ab6628218cf340cea144b770603df21b32 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Thu, 30 Jan 2025 11:43:00 -0800 Subject: [PATCH 1/2] Update FAQ, guidelines and rules The new syntax (though not all functionality is yet finished) of mkiocccentry does not match what was in the FAQ, guidelines and rules. Also added an important reminder to use v7 format with tarballs as not doing so can reveal who you are which would break the rules. This is mentioned in the rules and guidelines, showing how to create such a tarball. More work does have to be done with these two things however. --- faq.html | 20 +++++++---------- faq.md | 20 +++++++---------- next/guidelines.html | 17 ++++++++++----- next/guidelines.md | 19 +++++++++++++---- next/rules.html | 51 ++++++++++++++++++++++---------------------- next/rules.md | 48 +++++++++++++++++++++-------------------- 6 files changed, 93 insertions(+), 82 deletions(-) diff --git a/faq.html b/faq.html index bb3579d04..6af4dd737 100644 --- a/faq.html +++ b/faq.html @@ -684,24 +684,20 @@ explain how to use this tool. If you want to know what it is in simpler terms, see the FAQ on “what mkiocccentry is”.
As the Guidelines state, the synopsis is:
- mkiocccentry [options] work_dir prog.c \
- Makefile remarks.md [file ...]
-… where work_dir is a directory that will be used to build the submission
-tarball, prog.c is your submission source code, Makefile is your submission’s
-Makefile, remarks.md are your remarks (that will be the basis of the
-README.md file which will be used to form the index.html file, if your
-submission wins) and the remaining args are the paths to any other files you
-wish to submit.
The work_dir MUST already exist, as a directory, and it is an error if it
+
mkiocccentry [options] workdir topdir
+… where workdir is a directory that will be used to build the submission
+tarball and topdir is the directory which has your files, including the
+mandatory prog.c, Makefile and remarks.md.
The workdir MUST already exist, as a directory, and it is an error if it
is not a directory that can be written to. In this directory your submission
directory will be created, with the name based on your IOCCC registration
username, which is in the form of a UUID, and submission number; see the
rules for more details on this, and in particular Rule
17.
If the subdirectory in the work directory already exists, you will have to +
If the subdirectory in the work directory (based on your submit ID and
+slot number) already exists, you will have to
move it, remove it or otherwise specify a different work directory (NOT the
-subdirectory), as it needs to be empty and the mkiocccentry(1) tool does not
-check this for you as it could not do anything about anyway.
This subdirectory is where your files will be copied to. Your submission
tarball (which you will upload to the submit server) that txzchk(1) will
validate will be placed in the work directory, and its contents will
diff --git a/faq.md b/faq.md
index bc3d5046c..f12383137 100644
--- a/faq.md
+++ b/faq.md
@@ -300,28 +300,24 @@ FAQ on "[what mkiocccentry is](#about_mkiocccentry)".
As the [Guidelines](next/guidelines.html) state, the synopsis is:
```
- mkiocccentry [options] work_dir prog.c \
- Makefile remarks.md [file ...]
+ mkiocccentry [options] workdir topdir
```
-... where `work_dir` is a directory that will be used to build the submission
-tarball, `prog.c` is your submission source code, `Makefile` is your submission's
-`Makefile`, `remarks.md` are your remarks (that will be the basis of the
-`README.md` file which will be used to form the `index.html` file, if your
-submission wins) and the remaining args are the paths to any other files you
-wish to submit.
+... where `workdir` is a directory that will be used to build the submission
+tarball and `topdir` is the directory which has your files, including the
+mandatory `prog.c`, `Makefile` and `remarks.md`.
-The `work_dir` **MUST** already exist, as a directory, and it is an error if it
+The `workdir` **MUST** already exist, as a directory, and it is an error if it
is not a directory that can be written to. In **this** directory your **submission
directory** will be created, with the name based on your IOCCC registration
username, which is **in the form of a UUID**, and submission number; see the
[rules](next/rules.html) for more details on this, and in particular [Rule
17](next/rules.html#rule17).
-If the **_subdirectory_ in the _work directory_** already exists, you will have to
+If the **_subdirectory_ in the _work directory_** (based on your submit ID and
+slot number) already exists, you will have to
move it, remove it or otherwise specify a different work directory (**NOT** the
-subdirectory), as it needs to be empty and the `mkiocccentry(1)` tool does not
-check this for you as it could not do anything about anyway.
+subdirectory), as it needs to be empty.
This _subdirectory is where your files will be **copied** to_. Your _submission
tarball_ (which you will upload to the submit server) that `txzchk(1)` will
diff --git a/next/guidelines.html b/next/guidelines.html
index c03bbecb8..4bb161544 100644
--- a/next/guidelines.html
+++ b/next/guidelines.html
@@ -461,7 +461,7 @@ writing by contacting the judges.
mkiocccentry -d test_work prog.c Makefile remarks.md
+ mkiocccentry -d workdir topdir
@@ -845,6 +847,12 @@ If you DO include a tarball, and the build process or the progr
said tarball(s), the make clobber rule MUST remove them.
+ tar --format=v7 -cJf foo.txz directory
+
- mkiocccentry [options] work_dir prog.c \
- Makefile remarks.md [file ...]
+ mkiocccentry [options] workdir topdir
```
- mkiocccentry -d test_work prog.c Makefile remarks.md
+ mkiocccentry -d workdir topdir
```
@@ -518,6 +520,16 @@ If you **DO** include a tarball, and the build process or the program extracts
said tarball(s), the make `clobber` rule **MUST** remove them.
+
+
+```
+ tar --format=v7 -cJf foo.txz directory
+```
+
```
- mkiocccentry [options] work_dir prog.c \
- Makefile remarks.md [file ...]
+ mkiocccentry [options] workdir topdir
```
Jump to: top
- tar --format=v7 -cJf foo.txz directory
prog.c, Makefile, remarks.md and
the two JSON files generated by mkiocccentry(1), .info.json and
-.auth.json). Additionally, three of the files in the limit MUST be
-specific file(name)s: the OPTIONAL submission files, which are prog.alt.c,
-try.sh and try.alt.sh, or else they WILL count as an extra file. Of
-course, if you use the optional filenames without the files being their
-intended, that would be an abuse of rules.
-For more details on the optional files, see the
-FAQ on the “try.sh script system”
-and the
-FAQ on “alt code”.
+.auth.json).
+
+
+
+
tar --format=v7 -cJf foo.txz directory
+
+
+
+
+
+
```