add make unicode_chk and add jparse check to bin/unicode-chk.sh

We add `make unicode_chk` to run `bin/unicode-chk.sh` to check all
`.entry.json` and all `author/author_handle.json` files.

Added a JSON format check by `jparse(1)` to `bin/unicode-chk.sh`.

Changed `bin/unicode-chk.sh` VERSION from "1.0 2024-09-23"
to "1.1 2024-09-24".

Performed `make unicode_chk` to test the above under macOS.
This commit is contained in:
Landon Curt Noll committed 2024-09-24 04:51:22 -07:00
1 parent 499be5983d
commit f9f72152ab
2 files changed
+61 -8

No files matched your search

+10 -2
View File
@@ -69,7 +69,7 @@ SORT_GITIGNORE= bin/sort.gitignore.sh
FIND_MISSING_LINKS= bin/find-missing-links.sh
CSV2ENTRY= bin/csv2entry.sh
ENTRY2CSV= bin/entry2csv.sh
UNICODE_CHK= bin/unicode-chk.sh
#############
@@ -277,7 +277,7 @@ clobber:
# Finally: The rules in this section are NOT needed if you
# simple want to examine, run / test winning IOCCC entries.
.PHONY: help genpath genfilelist all_jfmt verify_entry_files gen_authors quick_authors \
.PHONY: help genpath genfilelist all_jfmt verify_entry_files unicode_chk gen_authors quick_authors \
gen_location quick_location gen_years find_missing_links test entry_index gen_top_html \
thanks gen_other_html quick_other_html quick_entry_index \
gen_year_index quick_year_index quick_www www untar_entry_tarball untar_year_tarball \
@@ -313,6 +313,7 @@ help:
@echo 'make genfilelist ;: generate YYYY level .filelist'
@echo 'make verify_entry_files ;: check to be sure all files in all entries exist'
@echo 'make sort_gitignore ;: sort .gitignore files according to rules in bin/sgi.sh'
@echo 'make unicode_chk ;: verify all .entry.json and author_handle.json files'
@echo 'make gen_authors ;: generate the top level authors.html page'
@echo 'make quick_authors ;: build authors.html if out of date with author JSON files'
@echo 'make gen_location ;: generate the top level location.html page'
@@ -448,6 +449,11 @@ verify_entry_files: ${ALL_RUN} ${CHK_ENTRY}
${ALL_RUN} -v 1 ${CHK_ENTRY}
@echo '=-=-=-=-= IOCCC complete make $@ =-=-=-=-='
unicode_chk: ${UNICODE_CHK}
@echo '=-=-=-=-= IOCCC begin make $@ =-=-=-=-='
${UNICODE_CHK} -v 1
@echo '=-=-=-=-= IOCCC complete make $@ =-=-=-=-='
# sort .gitignore files according to rules in bin/sgi.sh
#
sort_gitignore: ${ALL_RUN} ${SORT_GITIGNORE}
@@ -688,6 +694,7 @@ quick_www:
@echo '=-=-=-=-= IOCCC complete make genpath =-=-=-=-='
${MAKE} genfilelist
${MAKE} sort_gitignore
${MAKE} unicode_chk
${MAKE} verify_entry_files
${MAKE} quick_authors
${MAKE} quick_location
@@ -716,6 +723,7 @@ www:
@echo '=-=-=-=-= IOCCC complete make genpath =-=-=-=-='
${MAKE} genfilelist
${MAKE} sort_gitignore
${MAKE} unicode_chk
${MAKE} verify_entry_files
${MAKE} gen_authors
${MAKE} gen_location