Commit Graph
225 Commits
Author SHA1 Message Date
Landon Curt Noll 7c55a47cdc update manifest as per recent file changes 2024-01-14 12:12:55 -08:00
Landon Curt Noll dce8348db1 update manifest as per recent file changes 2024-01-13 20:05:40 -08:00
Cody Boone Ferguson 5e1d8f397a Remove another item from the todo file
I believe the item of checking in the Makefiles for primary target
failing resulting in building the alt version (where desired) is now
done so this has also been removed from the todo file.
2024-01-11 08:43:10 -08:00
Cody Boone Ferguson f94a17f7ef Remove an item from things-todo.md
I believe that the task of dealing with messages/warnings in the
Makefile about compilation has now been addressed. If this is not the
case it will be fixed in time but I believe it has been done.
2024-01-11 08:34:29 -08:00
Landon Curt Noll 151eab6469 update manifest and .winner.json as per recent changes 2024-01-10 14:14:11 -08:00
Landon Curt Noll 66a1c2efee Merge pull request #1845 from xexyl/birken2013-alt
Reword alt code suggestion in 2013/birken
2024-01-10 14:04:45 -08:00
Landon Curt Noll 259d8c8503 update manifest, remove inventory.html, update .winner.json
Update the manifest as per recent file changes.

Removed inventory.html from all winners as the inventory will be
added to the winner `index.html` instead,

Updated winner `.winner.json` files as per the above.
2024-01-10 14:03:53 -08:00
Cody Boone Ferguson e6fad17fc3 Reword alt code suggestion in 2013/birken
This also completes an item in the todo file and that has now been
removed.
2024-01-10 10:02:30 -08:00
Landon Curt Noll cb98c2a3a0 add HTML phase 20-22 to readme2index.sh, improve inc/gen-author.sh,
Add code to `readme2index.sh` to implement HTML phases 20, 21 and 22.

Improve `inc/gen-author.sh` to put blank lines around
the pandoc tool output.

Changed `inc/gen-author.sh` VERSION from "1.1 2024-01-01"
to "1.2 2024-01-04".
2024-01-04 21:36:22 -08:00
Landon Curt Noll 044d3dfabb checkpoint further development of tmp/readme2index.sh
The `tmp/readme2index.sh` tool now processes all the HTML phases,
except 20, 21, and 22.

Added missing -N early exits to various inc/*.sh tools.

Released VERSION "1.0 2024-01-02" of `inc/subst.default.sh`.

Renamed `inc/subst.readme.sh` to `inc/subst.winner-index.sh`.
Released VERSION "1.0 2024-01-02" of `inc/subst.winner-index.sh`.

Added `inc/topnav.first.html` and `inc/topnav.last.html` to
handle the 1st and last winners of a given year.

Added various fixes to `tmp/readme2index.sh`.
Improved debugging statements from `tmp/readme2index.sh`.

TODO: Add code to process HTML phases 20, 21, and 22.
TODO: Modify `inc/subst.winner-index.sh` to handle topnav links.
TODO: Add inventory links in some form to `index.html`.
TODO: Figure out how to best generate `inventory.html'.
2024-01-02 23:29:48 -08:00
Landon Curt Noll 36f2e202cc improve IOCCC CSS
Added Left - class for placing things on the left side
Added Right - class for placing things on the left side
Added Disabled - class for making something as if the feature has been disabled

Improved Responsive Web Design, adjusted font sizes and scaling.
Now Default: screen is > 968 pixels wide (> 984 w/padding)
Adapts when screen is > 761 pixels (> 777 w/padding) AND <= 968 pixels wide (<= 984 w/padding)
Adapts when screen is > 500 pixels (> 515 w/padding) AND <= 761 pixels wide (<= 777 w/padding)
Adapts when screen is <= 500 pixels wide: (<= 515 w/padding)

Changed tmp/test,html to help test this new part of the CSS.
2024-01-02 23:18:53 -08:00
Landon Curt Noll cc6ce08f3b update manifest and happy new year
Best wishes for a more fun 2024, too!
2023-12-31 23:17:02 -08:00
Landon Curt Noll 5494594262 fix setting of INC and AUTHOR_DIR in tmp/readme2index.sh 2023-12-31 19:56:06 -08:00
Landon Curt Noll 56ea5604db improve help message
Set select variables ahead of USAGE so that the
help message contains certain default values.

Added -u repo_url to `tmp/readme2index.sh` and `inc/pandoc_wrapper.sh` for
 the URL of the final target repo from where HTML files will be viewed.

Add missing Copyright to `inc/pandoc_wrapper.sh`.

Require a `.winner.json` under _yyyy/dir_.

Change `tmp/readme2index.sh` VERSION from "0.3 2023-12-31"
to "0.4 2023-12-31".

Change `inc/pandoc_wrapper.sh` VERSION from "1.0 2023-12-29"
to "1.2 2023-12-31".

Improve the parameter debugging under -v 3.

Fixed various typos.
2023-12-31 17:16:02 -08:00
Landon Curt Noll 5a5a158839 change -P optstr default
The -P optstr default for `readme2index.sh` now defaults to:

    -f markdown -t html --fail-if-warnings=true

The default -P optstr and -p tool are now displayed
in the help message of `readme2index.sh`.

The `readme2index.sh` VERSION changed from "0.2 2023-12-29"
to "0.3 2023-12-31".
2023-12-31 14:47:00 -08:00
Landon Curt Noll 8f1921565b further improve readme2index.sh help message
The '-p tool' and '-P optstr' will be passed as leading options on the
-b tool and -a tool command lines, not to the '-o tool' command lines.

Improve help text for readme2index.sh.

The `inc/md2html.cfg` file was updated so that the comment
about options matches the `readme2index.sh` tool usage message.
2023-12-31 14:08:45 -08:00
Landon Curt Noll e31c12c0eb improve readme2index.sh option checking, explain restrictions
The `readme2index.sh` tool does a more consistent job of checking
options in the help message and reporting when something violates
a restriction.

In many cases the parameters (_$OPTARG_) of an option is not allowed
to contain a single-quote, nor a double-quote.  We prevent use of
single-quotes and double-quotes in cases where passing such to other
tools may create a problem.

There are a few exceptions to the above mention "single-quote /
double-quote" restrictions.  For example, the "-s token=value" does
NOT have such a restriction.  In the case of  "-s token=value", we
can allow for the single-quotes and double-quotes because the ;
(semicolon) is used as a regex separator instead.

We also better explain the cumulative nature of "-s token=value".

Some help message wording cleanup was performed.

The `inc/md2html.cfg` file was updated so that the comment
about options matches the `readme2index.sh` tool usage message.
2023-12-31 13:30:13 -08:00
Landon Curt Noll e9662ea6be add -p tool and -P optstr as leading options to other tools
Add -p tool and -P optstr' at leading options when calling
the -b pool, -a tool and/or -o tools.
2023-12-31 11:34:51 -08:00
Cody Boone Ferguson 5aeba7b25a Add entry to todo file 2023-12-30 09:37:29 -08:00
Landon Curt Noll 87ce00fd0a update help text for -N
With -N, just parse arguments and ignore the file.

Change readme2index.sh version from "0.1 2023-12-10"
to "0.2 2023-12-29".  The previous change in
commit d5c4171d73
forgot to update the version number.
2023-12-29 22:55:31 -08:00
Landon Curt Noll d5c4171d73 checkpoint on tmp/readme2index.sh
The `tmp/sample_getopt.sh` is now `tmp/readme2index.sh`, a tool
that goes thru the motions of multi-phase getopt processing, scanning
the `inc/md2html.cfg` for the first match, and calls various stub tools.

The `inc/md2html.cfg` has been improved to document a cleaner getopt
phase model.
2023-12-29 20:55:35 -08:00
Cody Boone Ferguson 45e8c3e5df Typo fixes in scripts in tmp/
There are certainly more including some I encountered yesterday that are
not fixed but these can be fixed later on. These are just quick (and
incomplete) looks at some of the scripts.
2023-12-29 08:12:18 -08:00
Landon Curt Noll a099397977 fixed sort of manifest.numbers 2023-12-28 21:43:03 -08:00
Landon Curt Noll b3bbe3c111 update manifest as per recent file changes 2023-12-28 19:18:34 -08:00
Cody Boone Ferguson 742844aa31 Update todo file for future issue
I found another place where the wrong file is referred to in an entry:
in particular 1992/buzzard.2 refers to a file in 2020/ferguson2. This
type of thing will have to be checked for for all entries but this is an
example for future reference (I discovered it as I am working on a task
of 1992/buzzard.2).
2023-12-28 08:34:11 -08:00
Cody Boone Ferguson 8c4fe6dbdd Remove a number of items from the todo file
Some (or at least one?) was removed because there is another item that
where these things will be done together.
2023-12-28 06:56:57 -08:00
Cody Boone Ferguson ba764a1833 Fix tmp/format-headers.sh, format headers
The script had "s surrounding the git ls-files command which turned it
to a single file which of course is wrong.

Ran script again fixing many README.md files that had incorrect number
of blank lines for critical headers.

This will have to be done a final but a good number of files have been
corrected.
2023-12-27 08:54:28 -08:00
Cody Boone Ferguson 1a32748f4d Add entry about try scripts to todo file 2023-12-27 08:38:25 -08:00
Cody Boone Ferguson 63f08f566a Remove item about usleep macro name from todo file
In alt code where a call to usleep(3) is made to allow for configuring
speed originally I used the macro 'Z'. In one case 'Z' was already taken
so I changed it to 'S' for that entry. I had the thought it might be
nice to make it always the same. This however is not possible as more
entries already have 'S' used. Also it's not important since I changed
the Makefiles so that one can specify it like 'make clobber SLEEP=500
alt' or whatever, removing the macro name and having to mess with
'CDEFINE'.
2023-12-27 08:28:22 -08:00
Landon Curt Noll 5292717f04 update manifest as per recent file changes 2023-12-23 22:39:37 -08:00
Cody Boone Ferguson 94c912ddbe Minor typo fix/rewording in ioccc_status.sh 2023-12-23 05:29:16 -08:00
Cody Boone Ferguson f7345d58a4 Minor further update/fix in todo file 2023-12-23 05:28:29 -08:00
Cody Boone Ferguson baa03fb274 Remove some completed items from todo file 2023-12-23 05:22:58 -08:00
Landon Curt Noll af0b9cb058 update manifest as per recent file changes 2023-12-20 13:52:07 -08:00
Landon Curt Noll 0c977b213a update manifest as per recent file changes 2023-12-18 01:35:19 -08:00
Landon Curt Noll a4bd2fff67 add sample 3 phase parse command line parse
Adjusted `inc/md2html.cfg` to improve the 3 phase parse process.

Added `tmp/sample_getopt.sh` as a demo of the 3 phase parse of command
line options and arguments for that a markdown to HTML tool that
uses the `inc/md2html.cfg` configuration file.

Try:

```sh
cd tmp
./sample_getopt.sh -v 3 foo
```

The `tmp/sample_getopt.sh` tool performs a somewhat complicated 3
phase getopt parse of simulated command line options and arguments
that a tool converting markdown to HTML and using the `inc/md2html.cfg`
configuration file would perform.  The tool does not actually use
the  `inc/md2html.cfg`, it just simulates the complex 3 phase getopt
parsing procedure.

Updated `tmp/README.md` accordingly.
2023-12-18 00:30:11 -08:00
Cody Boone Ferguson a6824fa297 Improve how to redefine macros in 2011/toledo
The new variables in the Makefile, with defaults, are:

    FIRE= XK_BackSpace:XK_Tab
    FORWARD= XK_Up:XK_w
    BACKWARD= XK_Down:XK_s
    LEFT= XK_Left:XK_a
    RIGHT= XK_Right:XK_d
    WIDTH= 512
    HEIGHT= 288

An example of how to set some is in the README.md file.

This commit means I can remove an item from the things-todo.md file
which I have now done. Next I can return to 2018.
2023-12-12 06:01:10 -08:00
Landon Curt Noll ea12ffb632 update manifest as per recent file changes 2023-12-11 13:33:39 -08:00
Landon Curt Noll 0e6aeabf05 update manifest as per recent file changes 2023-12-10 14:31:54 -08:00
Landon Curt Noll 0ce39fe068 update manifest
Update manifest as per recent file changes.
2023-12-09 19:30:08 -08:00
Cody Boone Ferguson b85e20aac3 Make alt code variables in Makefiles consistent
That is the comments have a general form and if they're for the alt code
they're defined in the alt code section. If they're for the entry and
the alt code they're above the CDEFINE variable.

The thanks file has been updated where it was needed.

Now only entries that have not been done need this improvement.
2023-12-08 04:48:23 -08:00
Cody Boone Ferguson bfdb56584f Fix references to thanks-for-fixes -> help
As the thanks-for-fixes.md file was renamed (at my suggestion)
thanks-for-help.md I have made sure that the file referred to in the
repo is thanks-for-help and that the text regarding it also refers to
help and not fixes ('Thanks for the fixes' -> 'Thanks for the help').
2023-12-08 04:02:28 -08:00
Landon Curt Noll 6206201d8a add make genpath rules, .path files, updated .top and .year
Add .path files to each winner directory: a file containing
the path to the winner directory from the top directory.

Changed YYYY/.year files to contain the paths, from the top
directory, if the winning directories for the given year.

Changed `/.top` to contain the IOCCC years.

Added `make genpath` rule to the top Makefile and the
year Makefiles to generate the above.

Added FAQ 6.8 to `faq.md` to explain the above.

Updated manifest to reflect recent changes to the list of files.
2023-12-08 01:29:43 -08:00
Cody Boone Ferguson 0570786427 Update todo file
There are still a few entries that need to be improved for the easier
redefining of macros (usually for alt versions) via the Makefile but as
this is tedious I have grown tired of it for the day. The thanks file
for some of these might need to be updated as well. The todo file
includes the entries modified today that have to be checked so this is
not lost though not many have to be updated in this way. This is
primarily for entries that this improves the build of the original entry
too like 1998/banks.
2023-12-07 11:23:32 -08:00
Cody Boone Ferguson 4eedc740d9 Update tmp/things-todo.md
I noticed some issues in 2020/ferguson1/.winner.json that although is
for another issue I want to be sure to remember that this is one of the
ones that does in fact have a problem. Later on I can go through the
rest of them (not just mine but every one) and then make sure that
everything is okay.
2023-12-06 05:25:52 -08:00
Landon Curt Noll ee72f68777 test sidenav and topnav colors
Experiment with active and visited colors.

Added links for testing to content of tmp/test.html
as well.
2023-12-06 01:47:32 -08:00
Landon Curt Noll b40d35f4a2 added tmp/echo.sh test tool 2023-12-05 22:47:08 -08:00
Landon Curt Noll 03538ce774 cleanup manifest.numbers
Removed duplicate lines in manifest.numbers.
Fixed case problems with true, false and null.
Fixed leading and trailing whitespace problems.
Fixed multiple whitespace problems.

Improved fix_csv.sh to detect the above mentioned problems in
manifest.csv.

Updated manifest to reflect recent repo changes.
2023-12-05 22:33:08 -08:00
Landon Curt Noll cb9ad0bc11 update manifest
Updated manifest as per changes to files.
2023-12-05 03:52:35 -08:00
Landon Curt Noll 122142d39d update tmp purpose
Also mention the build-ioccc repo.
2023-12-03 13:47:57 -08:00