fix bin/tar-entry.sh and bin/tar-year.sh, improve bin/README.md, update Makefile

It turns out that `sed -i ''` is not portable. **sigh** Replaced use of
`sed -i ''` with other portable commands in `bin/tar-year.sh`.

Changed `bin/tar-entry.sh` VERSION from "1.3.4 2024-03-27"
to "1.3.5 2024-03-28".

Changed `bin/tar-year.sh` VERSION from "1.2 2024-03-27"
to "1.2.1 2024-03-28".

Changed `bin/gen-year-index.sh` VERSION from "1.0.4 2024-03-26"
to "1.0.5 2024-03-28".

Changed `bin/sort.gitignore.sh` VERSION from "1.1.3 2024-03-26"
to "1.1.4 2024-03-28".

Added new `bin/untar-year.sh` bin tool.

Tested `make untar_year_tarball` under Linux.

Added `make sort_gitignore` to sort entry `.gitignore` files.
The `make quick_www` and `make www` actions perform `make sort_gitignore`.

Added notes to `bin/README.md` (and thus to `bin/index.html` with
recommendations of top level Makefile actions that use selected bin
tools over all entries or years).

Tested `make www form_entry_tarball form_year_tarball untar_entry_tarball
untar_year_tarball` under Linux.

TODO: Retest `make www form_entry_tarball form_year_tarball
      untar_entry_tarball untar_year_tarball` under macOS.
This commit is contained in:
Landon Curt Noll committed 2024-03-28 03:35:47 -07:00
1 parent f07fec3a98
commit e4a76879ba
7 files changed
+608 -63

No files matched your search

+10
View File
@@ -66,6 +66,7 @@ TAR_YEAR= bin/tar-year.sh
TAR_ALL= bin/tar-all.sh
GEN_STATUS= bin/gen-status.sh
GEN_SITEMAP= bin/gen-sitemap.sh
SORT_GITIGNORE= bin/sort.gitignore.sh
#############
@@ -258,6 +259,7 @@ help:
@echo make genpath
@echo make genfilelist
@echo make verify_entry_files
@echo make sort_gitignore
@echo make gen_authors
@echo make gen_location
@echo make gen_years
@@ -332,6 +334,12 @@ genfilelist:
verify_entry_files: ${ALL_RUN} ${CHK_ENTRY}
@echo '=-=-=-=-= IOCCC begin make $@ =-=-=-=-='
${ALL_RUN} -v 3 ${CHK_ENTRY}
# check to be sure all files in all entries exist
#
sort_gitignore: ${ALL_RUN} ${SORT_GITIGNORE}
@echo '=-=-=-=-= IOCCC begin make $@ =-=-=-=-='
${ALL_RUN} -v 3 ${SORT_GITIGNORE} -v 1
@echo '=-=-=-=-= IOCCC complete make $@ =-=-=-=-='
# generate the top level authors.html page using the
@@ -421,6 +429,7 @@ quick_www:
${MAKE} genpath
${MAKE} genfilelist
${MAKE} verify_entry_files
${MAKE} sort_gitignore
${MAKE} gen_authors
${MAKE} gen_location
${MAKE} gen_years
@@ -440,6 +449,7 @@ www:
${MAKE} genpath
${MAKE} genfilelist
${MAKE} verify_entry_files
${MAKE} sort_gitignore
${MAKE} gen_authors
${MAKE} gen_location
${MAKE} gen_years