fix how bin tools sort

We set LC_ALL=C when sorting in a bin tool.  This was done
to make the result of using `sort(1)` consistent.

Improved how the Primary files and Secondary files are
sorted by `bin/output-index-inventory.sh` to sort
with "-u -k 1n -k 3.2d".

The above will change `index.html` files for all entries.

Changed `bin/chk-entry.sh` VERSION from "1.1.2 2024-03-17"
to "1.1.3 2024-03-18".

Changed `bin/gen-authors.sh` VERSION from "1.3 2024-03-04"
to "1.3.1 2024-03-18".

Changed `bin/gen-location.sh` VERSION from "1.1 2024-03-04"
to "1.1.1 2024-03-18".

Changed `bin/gen-sitemap.sh` VERSION from "1.3 2024-03-16"
to "1.3.1 2024-03-18".

Changed `bin/output-index-inventory.sh` VERSION from "1.2 2024-02-27"
to "1.2.1 2024-03-18".

Changed `bin/pandoc-wrapper.sh` VERSION from "1.5 2024-03-18"
to "1.5.1 2024-03-18".

Changed `bin/sort.gitignore.sh` VERSION from "1.1.1 2024-02-23"
to "1.1.2 2024-03-18".

Changed `bin/tar-all.sh` VERSION from "1.1 2024-02-27"
to "1.1.1 2024-03-18".

Changed `bin/tar-year.sh` VERSION from "1.1 2024-02-27"
to "1.1.1 2024-03-18".

Performed `make www` to update all entry `index.html` files.
This commit is contained in:
Landon Curt Noll committed 2024-03-18 02:43:03 -07:00
1 parent b9e2cab574
commit 0833c3e4f0
333 files changed
+767 -775

No files matched your search

+3 -3
View File
@@ -81,7 +81,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.1 2024-03-04"
export VERSION="1.1.1 2024-03-18"
NAME=$(basename "$0")
export NAME
export V_FLAG=0
@@ -454,7 +454,7 @@ fi
find "$AUTHOR_DIR" -mindepth 1 -maxdepth 1 -type f -name '*.json' -print0 |
xargs -0 grep '"location_code".*:' |
sed -e 's/^.*: "//' -e 's/",*$//' |
sort -u |
LC_ALL=C sort -u |
while read -r LOCATION_CODE; do
# use the location tool to obtain the location_name
@@ -511,7 +511,7 @@ fi
echo -n "$AUTHOR_JSON "
grep '"sort_word".*:' "$AUTHOR_JSON" | sed -e 's/^.*: "//' -e 's/",*$//'
done |
sort -k 2d |
LC_ALL=C sort -k 2d |
while read -r AUTHOR_HANDLE_PATH SORT_WORD; do
# The author_handle foo_bin is found in author/foo_bar.json