use jstrdecode -N w/o bin/jval-wrapper.sh -T
We now use `jstrdecode -N` without the need for using `-T` with `bin/jval-wrapper.sh`. Now depending on `jstrdecode(1)` with a minimum version of "1.2.3" (was "1.2.0"). Added information about bin tools missing from `bin/README.md`. Changed `bin/entry2csv.sh` VERSION from "1.5 2024-10-08" to "1.5.1 2024-10-10". Changed `bin/gen-authors.sh` VERSION from "1.14 2024-10-08" to "1.14.1 2024-10-10". Changed `bin/gen-location.sh` VERSION from "1.8 2024-10-08" to "1.8.1 2024-10-10". Changed `bin/gen-years.sh` VERSION from "1.6 2024-10-08" to "1.6.1 2024-10-10". Changed `bin/output-index-author.sh` VERSION from "1.10 2024-10-08" to "1.10.1 2024-10-10". Changed `bin/output-year-index.sh` VERSION from "1.6 2024-10-08" to "1.6.1 2024-10-10". Changed `bin/subst.entry-index.sh` VERSION from "1.8 2024-10-08" to "1.8.1 2024-10-10". Perform `make all_jfmt` to format canoncailly, all `entry.json` and all `author/author_handle.json` files. A side effect of this is to replace all of the fancy non-ASCII characters within JSON strings with their "bashslash-u hex hex hex hex" equivalent. Thanks to the newly fixed `jstrdecode(1)` tool, there was no change in the HTML output. Perform `make www` to perform the above and test under macOS.
This commit is contained in:
1 parent
bcc4c07a92
commit
da0c000f79
13 files changed
+171
-42
No files matched your search
+3
-3
@@ -85,7 +85,7 @@ shopt -s globstar # enable ** to match all files and zero or more directories an
|
||||
|
||||
# set variables referenced in the usage message
|
||||
#
|
||||
export VERSION="1.8 2024-10-08"
|
||||
export VERSION="1.8.1 2024-10-10"
|
||||
NAME=$(basename "$0")
|
||||
export NAME
|
||||
export V_FLAG=0
|
||||
@@ -123,7 +123,7 @@ if [[ -z $JSTRDECODE ]]; then
|
||||
echo "$0: notice: then: cd jparse && sudo make install clobber" 1>&2
|
||||
exit 5
|
||||
fi
|
||||
export MIN_JSTRDECODE_VERSION="1.2.0"
|
||||
export MIN_JSTRDECODE_VERSION="1.2.3"
|
||||
JSTRDECODE_VERSION=$("$JSTRDECODE" -V | head -1 | awk '{print $3;}')
|
||||
if ! "$VERGE" "$JSTRDECODE_VERSION" "$MIN_JSTRDECODE_VERSION"; then
|
||||
echo "$0: FATAL: jstrdecode version: $JSTRDECODE_VERSION < minimum version: $MIN_JSTRDECODE_VERSION" 1>&2
|
||||
@@ -593,7 +593,7 @@ find "$AUTHOR_DIR" -mindepth 1 -maxdepth 1 -type f -name '*.json' -print |
|
||||
# obtain the author full name
|
||||
#
|
||||
PATTERN='$..full_name'
|
||||
FULL_NAME=$("$JVAL_WRAPPER" -b -q -T "$AUTHOR_HANDLE_JSON" "$PATTERN" | "$JSTRDECODE" -)
|
||||
FULL_NAME=$("$JVAL_WRAPPER" -b -q "$AUTHOR_HANDLE_JSON" "$PATTERN" | "$JSTRDECODE" -N -)
|
||||
status_codes=("${PIPESTATUS[@]}")
|
||||
if [[ ${status_codes[*]} =~ [1-9] || -z $FULL_NAME ]]; then
|
||||
echo "$0: ERROR: cannot full name from: $AUTHOR_HANDLE" 1>&2
|
||||
|
||||
Reference in new issue
Block a user