6909 Commits
Author SHA1 Message Date
Landon Curt Noll 332255fd40 Merge pull request #2590 from xexyl/93-html 2024-07-22 13:04:52 -07:00
Cody Boone Ferguson e0c6dbd3c6 Format fix 1993/leo, 1993/rince 2024-07-22 12:47:53 -07:00
Landon Curt Noll 354953b530 fix checking of command status
In the spirit of pr #2589, we correct similar cases where the string
"status" instead of `$status` was being tested for a value.

In `bin/csv2entry.sh` changed VERSION from "1.1 2024-07-20"
to "1.1.1 2024-07-22".

In `bin/entry2csv.sh` changed VERSION from "1.1 2024-07-20"
to "1.1.1 2024-07-22".

In `bin/gen-sitemap.sh` changed VERSION from "1.3.10 2024-07-18"
to "1.3.11 2024-07-22".

In `bin/gen-status.sh` changed VERSION from "1.5.5 2024-07-18"
to "1.5.6 2024-07-22".

In `bin/md2html.sh` changed VERSION from "1.5.2 2024-07-18"
to "1.5.3 2024-07-22".

In `bin/tar-entry.sh` changed VERSION from "1.3.6 2024-04-28"
to "1.3.7 2024-07-22".

In `bin/tar-year.sh` changed VERSION from "1.2.4 2024-04-28"
to "1.2.5 2024-07-22".

Performed `make www` to accomplish the above and to test under macOS.
2024-07-22 12:23:33 -07:00
Landon Curt Noll 7747230c58 Merge pull request #2589 from xexyl/new-year-bug
Bug fix in bin/new-year.sh
2024-07-22 12:07:16 -07:00
Cody Boone Ferguson d5848dfddc Bug fix in bin/new-year.sh
In a couple places the variable 'status' was checked for a value by
comparing that value to 'status' instead of '$status'.
2024-07-22 12:02:33 -07:00
Landon Curt Noll 4fa49f73c6 Merge pull request #2588 from xexyl/nathan92-alt
Copy 1992/nathan.orig.c to nathan.alt.c
2024-07-22 11:59:35 -07:00
Cody Boone Ferguson 1a019d7bf1 Fix link in thanks file 2024-07-22 10:22:38 -07:00
Cody Boone Ferguson 997b773891 Copy 1992/nathan.orig.c to nathan.alt.c
This is so one can see what the originally published code did. The
index.html has a bold important note that one should NOT send an email
to the address as it is not only no longer necessary but it is not known
if it is still valid. Unlike the index.html where the email was
omitted/redacted the alt code still has the email as the original code
as it is an exact copy thereof, including the typos in it.

Rebuilt .entry.json and index.html.

Updated .gitignore.
2024-07-22 10:18:38 -07:00
Landon Curt Noll ec2819ac4c exclude .auth.json and .info.json
Always exclude `.auth.json` and `.info.json` files
in this repo.

This will be useful for IOCCC judges who are processing
submissions that are going to be announced as
new winning entries.
2024-07-21 23:57:25 -07:00
Landon Curt Noll 86ceab39f4 improve bin/new-year.sh and Makefile sub-dir processing
The `bin/new-year.sh` now uses make rules to perform some
if its actions.  It modifies the `Makefile` to add the
new year to the `${YEARS}` make variable.

Changed `bin/new-year.sh` VERSION from "1.0 2024-07-21"
to "1.1 2024-07-21".

The top level `Makefile` will test of a Makefile for
a given year exits before calling a make rule for the year.
If there is no `YYYY/Makefile` a warning message is issued

Updated `bin/README.md` to reflect these changes.

Performed `make www` to accomplish the above and to test under macOS.
2024-07-21 23:42:16 -07:00
Landon Curt Noll a4c07b0a14 put 2024 under test
We are testing tools and need to maintain a 2024 test directory
so we have added 2024 to `.gitignore` temporarily.

We have added a TODO item to issue #2239 to undo the effect
of this commit and similar testing commits.
2024-07-21 22:28:14 -07:00
Landon Curt Noll 0dbf358b37 add a consistent set of text about X11 2024-07-21 17:27:47 -07:00
Landon Curt Noll e719e63a1e fix bin/new-year.sh rename
Sorry (tm Canada 🇨).
2024-07-21 17:07:19 -07:00
Landon Curt Noll 082c8edbed add bin/add-dir.sh tool
Added `bin/add-dir.sh` VERSION "1.0 2024-07-21".
2024-07-21 16:53:20 -07:00
Landon Curt Noll d60f7784ba rename new_year.sh to new-year.sh
Use -'s for consistent bin tool names.
2024-07-21 16:30:22 -07:00
Landon Curt Noll 89e66b96c5 improve word flow around FAQ references 2024-07-21 16:17:20 -07:00
Landon Curt Noll f7e7610370 added the ability to wish a Happy New IOCCC Year
:-)

Added `bin/new_year.sh` VERSION "1.0 2024-07-21".
2024-07-21 15:22:40 -07:00
Landon Curt Noll 314ef43d25 improve the 1992/nathan historical note 2024-07-21 14:27:37 -07:00
Landon Curt Noll 88997cb7bb Merge pull request #2587 from xexyl/manifest 2024-07-21 13:36:28 -07:00
Cody Boone Ferguson 419420aa1c Manifest updates for 1993/ant and 2020/endoh2
For 1993/ant it clarifies (even though the extension of the file
probably would suggest it) that the man page is in text format.

For 2020/endoh2 there were some mistakes introduced with the renaming of
spoiler to other things.

Rebuilt the .entry.json and the index.html files for both.

Rebuilt 2020/endoh2/obfuscation/index.html.
2024-07-21 12:15:31 -07:00
Landon Curt Noll d29361e595 Merge pull request #2586 from xexyl/ant93-bugs
Fix bug status (missing file) in 1993/ant
2024-07-21 00:18:59 -07:00
Landon Curt Noll 08104ca043 Merge pull request #2585 from xexyl/fixes-92
Fixes in most of 1992 index.html files
2024-07-21 00:17:12 -07:00
Landon Curt Noll cc74882976 Merge pull request #2584 from xexyl/fixes-in-bugs-md
Fixes in bugs.{md,html}
2024-07-21 00:15:05 -07:00
Landon Curt Noll 1d536798b3 Merge pull request #2583 from xexyl/gson92-try
Improve 1992/gson/try.sh + fix index.html
2024-07-21 00:13:45 -07:00
Landon Curt Noll cf8148e458 Merge pull request #2582 from xexyl/fixes-bin-index
Fixes in bin/README.md, typo fixes in csv2entry.sh
2024-07-21 00:09:44 -07:00
Landon Curt Noll 62a90df37f improve CSV / .entry.json tools
Any canonicalization errors (e.g., sort error, mv error, etc.) will
cause an immediate `exit 8`.

The `bin/entry2csv.sh` tool will verify the author_handles referred
to by `author_wins.csv` and check the `author/cauthor_handle.json' file set.

The `bin/csv2entry.sh` tool will verify the author_handles referred
to by `author_wins.csv` and check the `author/cauthor_handle.json' file set.

In `bin/entry2csv.sh` changed VERSION from 1.0.4 2024-07-19"
"1.1 2024-07-20".

In `bin/csv2entry.sh` changed VERSION from to "1.0.1 2024-07-19"
"1.1 2024-07-20".

Performed `make www` to accomplish the above and to test under macOS.

TODO: Remove the `tmp` directory (after saving contents into private storage)
      after testing and improvement of `bin/csv2entry.sh` and
      `bin/entry2csv.sh is complete.
2024-07-20 23:44:45 -07:00
Cody Boone Ferguson a98c62418c Fix bug status (missing file) in 1993/ant
The unobfuscated version was recently provided by the author so this is
no longer an issue.

A code block in the INABIAF was changed to a quote as it's not code but
something the author wrote.

This entry's index.html might not be done as a question also has to be
addressed before the manifest can be fixed.
2024-07-20 13:56:38 -07:00
Cody Boone Ferguson 7a6edcda5e Fixes in most of 1992 index.html files
With the exception of 1992/nathan/index.html the entries of 1992 should
all be okay. The reason nathan cannot be done yet is some things have to
be decided first.

This commit fixes:

    1992/marangon/index.html
    1992/vern/index.html
    1992/westley/index.html
2024-07-20 13:49:46 -07:00
Cody Boone Ferguson 7ed91bad01 Fixes in bugs.{md,html}
The text 'If you want to try and fix this (mis)feature, you are welcome
to try' was problematic because these things are not (mis)features but
bugs. Thus it now reads '... fix this, ...'.

Also in one case that was noticed it was not actually anything that
should be fixed at all as they were documented features, not bugs.
2024-07-20 13:21:33 -07:00
Cody Boone Ferguson 967cd60b18 Improve 1992/gson/try.sh + fix index.html
For fun more strings have been added and the dictionary constructed with
mkdict.sh now uses index.html as well.

Some fun anagrams that might amuse some people, some from the program
and some that I noticed:

free software foundations:
    foundation was set for free
    foundations for free waste

unix international:
    relaxation unit inn
    nun relaxation in it
    inline no tar at unix

bill gates:
    stale glib

free software foundation (software):
    routine and waste offer of (software)
    idea for fun software note

microsoft conspiracy:
    try ansi op forms ioccc
    any op first forms ioccc

international microsoft conspiracy:
    first conspiracy container main tool
    force locations contains primary tin

but there are plenty others to find with the script and otherwise.
2024-07-20 13:15:04 -07:00
Cody Boone Ferguson e76286921b Fixes in bin/README.md, typo fixes in csv2entry.sh
The fixes in bin/README.md include typo fixes, link fixes, format fixes
as well as adding a couple terms that are now used by the IOCCC
(submission and submitter).

The typo fixes in bin/csv2entry.sh were deemed worth putting in this
commit as a lot of the changes in the document are related.
2024-07-20 11:39:02 -07:00
Landon Curt Noll 5b0cd20d54 Merge pull request #2581 from xexyl/help-make-typo 2024-07-20 09:41:00 -07:00
Cody Boone Ferguson 79193dc48d Typo in make help rule 2024-07-20 08:40:30 -07:00
Landon Curt Noll 34178dadba improve CSV / .entry.json tools, fix make csv2entry
Fixed typo in `make csv2entry` rule in `Makefile`.

Fixed how exit codes triggered deep within loops are realized.
Regularize how raising an exit codes with loops are announced.

The use of `-n` does NOT prevent the creation of temporary files:
only permanent files are not modified with `-n`.  NOTE: While
CSV files are NOT permanent files, they too are not modified with `-n`.

Fixed the canonical sort of `manifest.csv`.  Now running
`bin/csv2entry.sh` immediately after `bin/entry2csv.sh` will not
modify `manifest.csv`.

If `bin/csv2entry.sh` encounters an author handle for which
there is no `author/author_handle.json` file, the tool will
complete the formation of the CSV file set and then exit 9
at the very end.

Fixed a few comments in `bin/csv2entry.sh` and `bin/entry2csv.sh`.

In `bin/entry2csv.sh` changed VERSION from "1.0.3 2024-07-19"
to "1.0.4 2024-07-19".

In `bin/csv2entry.sh` changed VERSION from "1.0 2024-07-19"
to "1.0.1 2024-07-19".

Performed `make www` to accomplish the above and to test under macOS.

TODO: Incorporate as needed, more processing of `author/author_handle.json` files.

TODO: Remove the `tmp` directory (after saving contents into private storage).
2024-07-19 16:39:09 -07:00
Landon Curt Noll fcd016a884 update and improve make help
Added `make entry2csv` and `make csv2entry` to the help list.

Changed the "syntax" if the lines printed by `make help` so
that when one selects the entire line and pastes that line
into the shell, the trailing comment is not seen as a rule,
nor it is executed.

Made other minor formatting changes of `make help`.
2024-07-19 14:41:20 -07:00
Landon Curt Noll bbd09c7e46 Merge pull request #2580 from xexyl/entry-csv-make
Update Makefile for csv2entry and entry2csv
2024-07-19 14:11:13 -07:00
Cody Boone Ferguson 06ceb851e4 More updates for entry2csv and csv2entry
The Makefile rules now have a comment for what they do. The help rule
has not been updated.

The bin/README.md has had some format fixes and some typo fixes as well.
Rebuilt bin/index.html but these two files will have to be checked more
thoroughly later.
2024-07-19 13:45:24 -07:00
Cody Boone Ferguson b18a2dc375 Update Makefile for csv2entry and entry2csv
The variables CSV2ENTRY and ENTRY2CSV have been added for the new rules
that run the new rules, csv2entry and entry2csv, respectively, according
to the log in 097dd49cc7.

The rules have been added to .PHONY (thinking about this quickly I
believe this is correct but if not it can be corrected) but not make
help as I am not sure where in that rule they should be and I am also
not sure what should be said even as a summary. The rules have a comment
for which tool it runs but it also does not have a summary as I am not
sure what it should say and I do not currently have the time to look
into it.

With this commit it is now easier to run these tools for testing and
otherwise.
2024-07-19 08:59:28 -07:00
Landon Curt Noll 097dd49cc7 add tools to manage .entry.json content
Added `bin/csv2entry.sh` VERSION "1.0 2024-07-19".

In `bin/entry2csv.sh` changed VERSION from "1.0.2 2024-07-14"
to "1.0.3 2024-07-19".

The `bin/entry2csv.sh` tool converts all entry `.entry.json` files
into canonicalized `author_wins.csv`, `manifest.csv`, and `year_prize.csv`
CSV files.

The `bin/csv2entry.sh` tool converts `author_wins.csv`, `manifest.csv`,
and `year_prize.csv` (canonicalizing them if needed)  `.entry.json`
files for all entries.

To change the manifest for one or more entries:

```sh
    bin/entry2csv.sh -v 1
    # ((import `manifest.csv` into a spreadsheet tool))
    # ((modify in the spreadsheet tool, the content as needed))
    # ((export the spreadsheet contents, as the CSV file  `manifest.csv`))
    bin/csv2entry.sh -v 1
    make www
``

To change the award for one or more entries:

```sh
    bin/entry2csv.sh -v 1
    # ((import `year_prize.csv` into a spreadsheet tool))
    # ((modify in the spreadsheet tool, the content as needed))
    # ((export the spreadsheet contents, as the CSV file  `year_prize.csv`))
    bin/csv2entry.sh -v 1
    make www
``

To change the authorship of one or more entries:

```sh
    bin/entry2csv.sh -v 1
    # ((import `author_wins.csv` into a spreadsheet tool))
    # ((modify in the spreadsheet tool, the content as needed))
    # ((export the spreadsheet contents, as the CSV file  `author_wins.csv`))
    bin/csv2entry.sh -v 1
    # ((modify winning_entry_set of `author/author_handle.json` files as needed))
    make www
``

Performed `make www` to accomplish the above and to test under macOS.

TODO: Review and improve/expand as needed, changes that were made to `bin/README.md`.

TODO: Remove the `tmp` directory (after saving contents into private storage).
2024-07-19 02:15:18 -07:00
Landon Curt Noll ed866b45e8 format headers
We move `tmp/format-headers.sh` into `bin/format-headers.sh`.

We also add a few missing empty lines to `README.md`.

We add `bin/format-headers.sh` to the `bin/README.md`.

We run `bin/format-headers.sh` to perform the above.

Performed `make www` to accomplish the above and to test under macOS.
2024-07-19 00:18:41 -07:00
Landon Curt Noll 0ae673c24e added UNIX command line quote to bin/README.md 2024-07-18 15:23:30 -07:00
Landon Curt Noll be94c60316 fix how tools check exit codes an entire pipe
We use the `status_codes=("${PIPESTATUS[@]}")` method to
collect all of the bash exit codes from a pipe in one go,
and then test for any failure with `[[ ${status_codes[*]} =~ [1-9] ]]`.

There are other cases where an exit code is obtained,
however in each of those cases only a single exit code
from just one of the commands in the pipe is needed.

In `bin/gen-sitemap.sh` changed VERSION from "1.3.9 2024-06-21"
to "1.3.10 2024-07-18".

In `bin/gen-status.sh` changed VERSION from "1.5.4 2024-07-18"
to "1.5.5 2024-07-18".

Performed `make www` to accomplish the above and to test under macOS.
2024-07-18 15:02:16 -07:00
Landon Curt Noll ef35efc4d3 canonicalize failure :-)
We fix some error messages in a few bin scripts.

Sorry (tm Canada 🇨) for the punny log message.
2024-07-18 13:37:44 -07:00
Landon Curt Noll ad72ca96ea add change that was caught by make www 2024-07-18 12:41:08 -07:00
Landon Curt Noll fffe9797a6 Merge pull request #2579 from xexyl/westley92
Remove non bug bug status in 1992/westley
2024-07-18 12:29:41 -07:00
Cody Boone Ferguson d7fb575f16 Remove non bug bug status in 1992/westley
This 'bug' was not actually a bug but an improper reading of the author's
remarks. Upon another read later on (today) it became clear what
the author was getting at. It is not what happens upon execution but
rather the layout of the code: if the alternate code (the US specific
version) is a one line of 160 characters and your terminal wraps at 80
columns it will spell out (over two lines):

    mainland America

The westley.alt2.c is exactly this. It can be compiled if one has gcc or
a compiler that does not have the limitations of arg types to main()
that clang has by using make alt2 (not make alt as it would fail for
clang but people might want to use the alternate code and in fact the
try.sh script does this) but it has the original limitation that one
needs to have a terminal that wraps at 80 columns (since it has to be
the same length of code). But as that size is not that common nowadays
(and in most cases one would have to resize their window) it's mostly
for show.

Updated manifest, rebuilt .entry.json and index.html.

Updated bugs.md and rebuilt bugs.html.
2024-07-18 12:00:21 -07:00
Landon Curt Noll d72364ed16 Merge pull request #2578 from xexyl/statuses
Make bug statuses in index.html files quotes
2024-07-17 13:00:45 -07:00
Landon Curt Noll 6d7b5348b6 improve FAQ 5.5 and FAQ 6.16
We improve FAQ 5.5 (correcting or updating IOCCC author information)
by adding a generic example on changing author's URL.

Now the "PLEASE HELP us identify proper locations for IOCCC authors"
(that now follows the change of URL example) contains only
generic information about changing the location_code from ZZ to AU.

We remove the indirect reference to author email in FAQ 6.16 as we
do not wish to call out what we previously included in the
`authors.html` page.

This commit modifies that otherwise perfect fine PR #2578.

Performed `make www` to accomplish the above and to test under macOS.
2024-07-17 12:38:14 -07:00
Landon Curt Noll 55a413cd55 Merge remote-tracking branch 'origin/master' into statuses 2024-07-17 12:29:55 -07:00
Landon Curt Noll 43fafd0af6 improve FAQ 5.5 and FAQ 6.16
We improve FAQ 5.5 (correcting or updating IOCCC author information)
by adding a generic example on changing author's URL.

Now the "PLEASE HELP us identify proper locations for IOCCC authors"
(that now follows the change of URL example) contains only
generic information about changing the location_code from ZZ to AU.

We remove the indirect reference to author email in FAQ 6.16 as we
do not wish to call out what we previously included in the
`authors.html` page.

This commit modifies that otherwise perfect fine PR #2578.

Performed `make www` to accomplish the above and to test under macOS.
2024-07-17 12:25:23 -07:00