Merge pull request #2364 from xexyl/more-thanks
More corrections in thanks file
This commit is contained in:
17 files changed
+353
-284
No files matched your search
+26
-26
@@ -114,32 +114,32 @@ export EXIT_CODE="0"
|
||||
#
|
||||
unset IS_FOR
|
||||
declare -Ag IS_FOR
|
||||
IS_FOR[a]="<i>a is for</i> <code>atoi</code>"
|
||||
IS_FOR[b]="<i>b is for</i> <code>break</code>"
|
||||
IS_FOR[c]="<i>c is for</i> <code>const</code>"
|
||||
IS_FOR[d]="<i>d is for</i> <code>do</code>"
|
||||
IS_FOR[e]="<i>e is for</i> <code>else</code>"
|
||||
IS_FOR[f]="<i>f is for</i> <code>float</code>"
|
||||
IS_FOR[g]="<i>g is for</i> <code>getc</code>"
|
||||
IS_FOR[h]="<i>h is for</i> <code>hypot</code>"
|
||||
IS_FOR[i]="<i>i is for</i> <code>int</code>"
|
||||
IS_FOR[j]="<i>j is for</i> <code>jmp_buf</code>"
|
||||
IS_FOR[k]="<i>k is for</i> <code>killchar</code>"
|
||||
IS_FOR[l]="<i>l is for</i> <code>long</code>"
|
||||
IS_FOR[m]="<i>m is for</i> <code>malloc</code>"
|
||||
IS_FOR[n]="<i>n is for</i> <code>nullptr</code>"
|
||||
IS_FOR[o]="<i>o is for</i> <code>open</code>"
|
||||
IS_FOR[p]="<i>p is for</i> <code>printf</code>"
|
||||
IS_FOR[q]="<i>q is for</i> <code>qsort</code>"
|
||||
IS_FOR[r]="<i>r is for</i> <code>return</code>"
|
||||
IS_FOR[s]="<i>s is for</i> <code>switch</code>"
|
||||
IS_FOR[t]="<i>t is for</i> <code>true</code>"
|
||||
IS_FOR[u]="<i>u is for</i> <code>union</code>"
|
||||
IS_FOR[v]="<i>v is for</i> <code>volatile</code>"
|
||||
IS_FOR[w]="<i>w is for</i> <code>while</code>"
|
||||
IS_FOR[x]="<i>x is for</i> <code>xor</code>"
|
||||
IS_FOR[y]="<i>y is for</i> <code>y0</code>"
|
||||
IS_FOR[z]="<i>z is for</i> <code>zlib</code>"
|
||||
IS_FOR[a]="<i>a</i> is for <code>atoi</code>"
|
||||
IS_FOR[b]="<i>b</i> is for <code>break</code>"
|
||||
IS_FOR[c]="<i>c</i> is for <code>const</code>"
|
||||
IS_FOR[d]="<i>d</i> is for <code>do</code>"
|
||||
IS_FOR[e]="<i>e</i> is for <code>else</code>"
|
||||
IS_FOR[f]="<i>f</i> is for <code>float</code>"
|
||||
IS_FOR[g]="<i>g</i> is for <code>getc</code>"
|
||||
IS_FOR[h]="<i>h</i> is for <code>hypot</code>"
|
||||
IS_FOR[i]="<i>i</i> is for <code>int</code>"
|
||||
IS_FOR[j]="<i>j</i> is for <code>jmp_buf</code>"
|
||||
IS_FOR[k]="<i>k</i> is for <code>killchar</code>"
|
||||
IS_FOR[l]="<i>l</i> is for <code>long</code>"
|
||||
IS_FOR[m]="<i>m</i> is for <code>malloc</code>"
|
||||
IS_FOR[n]="<i>n</i> is for <code>nullptr</code>"
|
||||
IS_FOR[o]="<i>o</i> is for <code>open</code>"
|
||||
IS_FOR[p]="<i>p</i> is for <code>printf</code>"
|
||||
IS_FOR[q]="<i>q</i> is for <code>qsort</code>"
|
||||
IS_FOR[r]="<i>r</i> is for <code>return</code>"
|
||||
IS_FOR[s]="<i>s</i> is for <code>switch</code>"
|
||||
IS_FOR[t]="<i>t</i> is for <code>true</code>"
|
||||
IS_FOR[u]="<i>u</i> is for <code>union</code>"
|
||||
IS_FOR[v]="<i>v</i> is for <code>volatile</code>"
|
||||
IS_FOR[w]="<i>w</i> is for <code>while</code>"
|
||||
IS_FOR[x]="<i>x</i> is for <code>xor</code>"
|
||||
IS_FOR[y]="<i>y</i> is for <code>y0</code>"
|
||||
IS_FOR[z]="<i>z</i> is for <code>zlib</code>"
|
||||
|
||||
# clear options we will add to tools
|
||||
#
|
||||
|
||||
+24
-12
@@ -111,6 +111,18 @@ if [[ -z "$JPARSE_TOOL" ]]; then
|
||||
echo "$0: FATAL: jparse tool is not installed or not in \$PATH" 1>&2
|
||||
exit 5
|
||||
fi
|
||||
STAT_TOOL=$(type -P stat)
|
||||
if [[ -z "$STAT_TOOL" ]]; then
|
||||
echo "$0: FATAL: stat tool is not installed or not in \$PATH" 1>&2
|
||||
exit 5
|
||||
fi
|
||||
|
||||
LS_TOOL=$(type -P ls)
|
||||
if [[ -z "$LS_TOOL" ]]; then
|
||||
echo "$0: FATAL: ls tool is not installed or not in \$PATH" 1>&2
|
||||
exit 5
|
||||
fi
|
||||
|
||||
export IOCCC_STATUS_VERSION="1.0 2024-03-09"
|
||||
#
|
||||
export NOOP=
|
||||
@@ -153,11 +165,11 @@ function output_modtime
|
||||
# macOS stat
|
||||
#
|
||||
macos_stat)
|
||||
TZ=UTC stat -f '%Sm' -t '%FT%T+00:00' "$FILENAME"
|
||||
TZ=UTC "$STAT_TOOL" -f '%Sm' -t '%FT%T+00:00' "$FILENAME"
|
||||
status="$?"
|
||||
if [[ $status -ne 0 ]]; then
|
||||
echo "$0: ERROR: in output_modtime:" \
|
||||
"TZ=UTC stat -f '%Sm' -t '%FT%T+00:00' $FILENAME failed, error code: $status" 1>&2
|
||||
"TZ=UTC $STAT_TOOL -f '%Sm' -t '%FT%T+00:00' $FILENAME failed, error code: $status" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
@@ -165,12 +177,12 @@ function output_modtime
|
||||
# RHEL Linux stat
|
||||
#
|
||||
RHEL_stat)
|
||||
TZ=UTC stat -c '%y' "$FILENAME" | sed -e 's/ /T/' -e 's/\.[0-9]* //' -e 's/\([0-9][0-9]\)$/:&/'
|
||||
TZ=UTC "$STAT_TOOL" -c '%y' "$FILENAME" | sed -e 's/ /T/' -e 's/\.[0-9]* //' -e 's/\([0-9][0-9]\)$/:&/'
|
||||
status0="${PIPESTATUS[0]}"
|
||||
status1="${PIPESTATUS[1]}"
|
||||
if [[ $status0 -ne 0 || $status1 -ne 0 ]]; then
|
||||
echo "$0: ERROR: in output_modtime:" \
|
||||
"TZ=UTC stat -c '%y' $FILENAME | sed .. failed, error codes: $status0 and $status1" 1>&2
|
||||
"TZ=UTC $STAT_TOOL -c '%y' $FILENAME | sed .. failed, error codes: $status0 and $status1" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
@@ -181,12 +193,12 @@ function output_modtime
|
||||
# SC2012 (info): Use find instead of ls to better handle non-alphanumeric filenames.
|
||||
# https://www.shellcheck.net/wiki/SC2012
|
||||
# shellcheck disable=SC2012
|
||||
TZ=UTZ ls -D '%FT%T+00:00' -ld "$FILENAME" | awk '{print $6;}'
|
||||
TZ=UTZ "$LS_TOOL" -D '%FT%T+00:00' -ld "$FILENAME" | awk '{print $6;}'
|
||||
status0="${PIPESTATUS[0]}"
|
||||
status1="${PIPESTATUS[1]}"
|
||||
if [[ $status0 -ne 0 || $status1 -ne 0 ]]; then
|
||||
echo "$0: ERROR: in output_modtime:" \
|
||||
"TZ=UTZ ls -D '%FT%T+00:00' -ld $FILENAME | awk .. failed, error codes: $status0 and $status1" 1>&2
|
||||
"TZ=UTZ $LS_TOOL -D '%FT%T+00:00' -ld $FILENAME | awk .. failed, error codes: $status0 and $status1" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
@@ -687,12 +699,12 @@ export NEXT_DIR="next"
|
||||
#
|
||||
# TZ=UTC stat -f '%Sm' -t '%FT%T+00:00' filename
|
||||
#
|
||||
TZ=UTC stat -f '%Sm' -t '%FT%T+00:00' "$TOP_FILE" > /dev/null 2>&1
|
||||
TZ=UTC "$STAT_TOOL" -f '%Sm' -t '%FT%T+00:00' "$TOP_FILE" > /dev/null 2>&1
|
||||
status="$?"
|
||||
if [[ $status -eq 0 ]]; then
|
||||
MODTIME_METHOD="macos_stat"
|
||||
if [[ $V_FLAG -ge 5 ]]; then
|
||||
echo "$0: debug[5]: TZ=UTC stat -f '%Sm' -t '%FT%T+00:00' works, MODTIME_METHOD: $MODTIME_METHOD" 1>&2
|
||||
echo "$0: debug[5]: TZ=UTC $STAT_TOOL -f '%Sm' -t '%FT%T+00:00' works, MODTIME_METHOD: $MODTIME_METHOD" 1>&2
|
||||
fi
|
||||
|
||||
else
|
||||
@@ -703,12 +715,12 @@ else
|
||||
#
|
||||
# NOTE: We only need to test the stat command.
|
||||
#
|
||||
TZ=UTC stat -c '%y' "$TOP_FILE" > /dev/null 2>&1
|
||||
TZ=UTC "$STAT_TOOL" -c '%y' "$TOP_FILE" > /dev/null 2>&1
|
||||
status="$?"
|
||||
if [[ $status -eq 0 ]]; then
|
||||
MODTIME_METHOD="RHEL_stat"
|
||||
if [[ $V_FLAG -ge 5 ]]; then
|
||||
echo "$0: debug[5]: TZ=UTC stat -c '%y' works, MODTIME_METHOD: $MODTIME_METHOD" 1>&2
|
||||
echo "$0: debug[5]: TZ=UTC $STAT_TOOL -c '%y' works, MODTIME_METHOD: $MODTIME_METHOD" 1>&2
|
||||
fi
|
||||
|
||||
else
|
||||
@@ -717,12 +729,12 @@ else
|
||||
#
|
||||
# TZ=UTZ ls -D '%FT%T+00:00' -ld
|
||||
#
|
||||
TZ=UTZ ls -D '%FT%T+00:00' -ld "$TOP_FILE" > /dev/null 2>&1
|
||||
TZ=UTZ "$LS_TOOL" -D '%FT%T+00:00' -ld "$TOP_FILE" > /dev/null 2>&1
|
||||
status="$?"
|
||||
if [[ $status -eq 0 ]]; then
|
||||
MODTIME_METHOD="ls_D"
|
||||
if [[ $V_FLAG -ge 5 ]]; then
|
||||
echo "$0: debug[5]: TZ=UTZ ls -D '%FT%T+00:00' -ld works, MODTIME_METHOD: $MODTIME_METHOD" 1>&2
|
||||
echo "$0: debug[5]: TZ=UTZ $LS_TOOL -D '%FT%T+00:00' -ld works, MODTIME_METHOD: $MODTIME_METHOD" 1>&2
|
||||
fi
|
||||
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user