set C locale
In all bin shell scripts, set `LC_ALL`, `LANG`, and `LC_NUMERIC` to "C". Changed all bin shell script VERSION to "2.0.0 2025-03-13". Tested the above via `make www` on macOS. Only the sitemap was updated.
This commit is contained in:
1 parent
06557fbe6b
commit
bcdcbd58f9
43 files changed
+521
-89
No files matched your search
+12
-2
@@ -104,9 +104,16 @@ shopt -u extglob # enable extended globbing patterns
|
||||
shopt -s globstar # enable ** to match all files and zero or more directories and subdirectories
|
||||
|
||||
|
||||
# IOCCC requires use of C locale
|
||||
#
|
||||
export LC_ALL="C"
|
||||
export LANG="C"
|
||||
export LC_NUMERIC="C"
|
||||
|
||||
|
||||
# set variables referenced in the usage message
|
||||
#
|
||||
export VERSION="1.3.3 2025-02-26"
|
||||
export VERSION="2.0.0 2025-03-13"
|
||||
NAME=$(basename "$0")
|
||||
export NAME
|
||||
export V_FLAG=0
|
||||
@@ -163,7 +170,7 @@ if [[ -z "$CHKENTRY_TOOL" ]]; then
|
||||
exit 5
|
||||
fi
|
||||
export MIN_CHKENTRY_VERSION="1.1.5"
|
||||
CHKENTRY_VERSION=$("$CHKENTRY" -V | head -1 | awk '{print $3;}')
|
||||
CHKENTRY_VERSION=$("$CHKENTRY_TOOL" -V | head -1 | awk '{print $3;}')
|
||||
if ! "$VERGE" "$CHKENTRY_VERSION" "$MIN_CHKENTRY_VERSION"; then
|
||||
echo "$0: FATAL: chkentry version: $CHKENTRY_VERSION < minimum version: $MIN_CHKENTRY_VERSION" 1>&2
|
||||
echo "$0: notice: consider updating chkentry from mkiocccentry repo" 1>&2
|
||||
@@ -1062,6 +1069,9 @@ export TARBALL="$TARBALL_DIR/$ENTRY_ID.mods.$NOW.tar.bz2"
|
||||
# If -v 3 or higher, print exported variables in order that they were exported.
|
||||
#
|
||||
if [[ $V_FLAG -ge 3 ]]; then
|
||||
echo "$0: debug[3]: LC_ALL=$LC_ALL" 1>&2
|
||||
echo "$0: debug[3]: LANG=$LANG" 1>&2
|
||||
echo "$0: debug[3]: LC_NUMERIC=$LC_NUMERIC" 1>&2
|
||||
echo "$0: debug[3]: VERSION=$VERSION" 1>&2
|
||||
echo "$0: debug[3]: NAME=$NAME" 1>&2
|
||||
echo "$0: debug[3]: V_FLAG=$V_FLAG" 1>&2
|
||||
|
||||
Reference in new issue
Block a user