add quick-readme2index.sh, improve all-run.sh and readme2index.sh

Improved `all-run.sh` and `readme2index.sh` so that
certain command line options (e.g., -p, -P, -u, -U ...)
are only passed along to other tools if they are
given on the command line.

all-run.sh VERSION changed from "1.1.1 2024-01-19"
to "1.1.2 2024-01-20",

readme2index.sh VERSION changed from "1.1 2024-01-16"
to "1.1.1 2024-01-20".

Added `quick-readme2index.sh` that only calls
`readme2index.sh` if the `index.html` is not
a non-empty file, or of either `.winner.json`
and/or `README.md` is newer than `index.html`.

Updated all `index.html` files because the
the file contains a comment that includes
the newly modified readme2index.sh VERSION.
This commit is contained in:
Landon Curt Noll committed 2024-01-21 00:21:40 -08:00
1 parent e14325556c
commit d414b6d71f
325 files changed
+1352 -497

No files matched your search

+43
View File
@@ -17,6 +17,18 @@ as well as various JSON files and other content from the
Run a command on all winning entries.
For example:
```sh
bin/all-run.sh -v 3 bin/quick-readme2index.sh -v 1
```
Or for example:
```sh
bin/all-run.sh -v 3 bin/readme2index.sh -v 1
```
### [gen-author.sh](gen-author.sh)
@@ -43,6 +55,37 @@ Output manifest table from a winner .winner.json file.
Wrapper tool to run pandoc.
### [quick-readme2index.sh](quick-readme2index.sh)
Runs [readme2index.sh](readme2index.sh) if the winner directory
does not have a non-empty `index.hmtl` file, or if either
`.winner.json` or `README.md` is newer than the `index.hmtl` file.
This is useful when only a few winners have been
modified (resulting in an updated `.winner.json` file)
or if the `README.md` of a few winners have been changed.
While the [readme2index.sh](readme2index.sh) take a few
seconds to run, when applied to 300+ winners,
the extra time can add up.
If only a few `index.hmtl` files need updating, then
this command will only briefly pause while the
slightly longer [readme2index.sh](readme2index.sh) is run:
```sh
bin/all-run.sh -v 3 bin/quick-readme2index.sh -v 1
```
**NOTE**: This command assumes that the relative
modification times for `index.hmtl`, .winner.json`,
and `README.md` are correct. If in doubt, use:
```sh
bin/all-run.sh -v 3 bin/readme2index.sh -v 1
```
### [readme2index.sh](readme2index.sh)
Convert README.md into index.html.