From 58fa337a586493b33bdb3f99c1ca3ce1cee9693f Mon Sep 17 00:00:00 2001
From: Landon Curt Noll
Date: Sun, 21 Apr 2024 13:29:20 -0700
Subject: [PATCH] add lines to authors.html
Add lines between letter headers.
Add "Jump to: top" near the bottom.
Changed `bin/gen-top-html.sh` VERSION from to "1.4.1 2024-04-16"
to "1.4.2 2024-04-21".
Run `make gen_authors` to perform the above.
---
authors.html | 156 ++++++++++++++++++++++++++++++---------------
bin/gen-authors.sh | 18 ++++--
2 files changed, 118 insertions(+), 56 deletions(-)
diff --git a/authors.html b/authors.html
index d5d53175d..1f7c7a9d5 100644
--- a/authors.html
+++ b/authors.html
@@ -163,10 +163,11 @@ Jump to authors starting with: [
Z]
+
-
A is for atoi
-
+
+
@@ -342,10 +343,12 @@ Location: SE - Kingdom of Sweden (Sw
1986/august - Best complex task done in a complex way
1996/august - Best of Show
+
+
-
B is for break
-
+
+
@@ -653,10 +656,12 @@ Location: ZZ - Unknown location
+
+
-
C is for const
-
+
+
@@ -747,10 +752,12 @@ Location: ZZ - Unknown location
+
+
-
D is for do
-
+
+
@@ -941,10 +948,12 @@ Location: FR - French Republic (Fran
+
+
-
E is for else
-
+
+
@@ -1011,10 +1020,12 @@ Location: JP - Japan
2020/endoh2 - Best perspective
2020/endoh3 - Most head-turning
+
+
-
F is for float
-
+
+
@@ -1102,10 +1113,12 @@ Location: GB - United Kingdom of Great Britai
+
+
-
G is for getc
-
+
+
@@ -1206,10 +1219,12 @@ Location: FI - Republic of Finland (
1992/gson - Most Humorous Output
+
+
-
H is for hypot
-
+
+
@@ -1438,10 +1453,12 @@ Location: US - United States of America
+
+
-
I is for int
-
+
+
@@ -1455,10 +1472,12 @@ Location: ZZ - Unknown location
+
+
-
J is for jmp_buf
-
+
+
@@ -1496,10 +1515,12 @@ Location: ZZ - Unknown location
+
+
-
K is for killchar
-
+
+
@@ -1613,10 +1634,12 @@ Location: RU - Russian Federation (R
2020/kurdyukov3 - Bset slaml prragom
2020/kurdyukov4 - Best abuse of lámatyávë
+
+
-
L is for long
-
+
+
@@ -1744,10 +1767,12 @@ Location: US - United States of America
+
+
-
M is for malloc
-
+
+
@@ -1940,10 +1965,12 @@ Location: DE - Federal Republic of Germany
2015/muth - Most Complete Use of CPP
+
+
-
N is for nullptr
-
+
+
@@ -1993,10 +2020,12 @@ Location: FI - Republic of Finland (
1989/jar.2 - Best of show
+
+
-
O is for open
-
+
+
@@ -2046,10 +2075,12 @@ Location: US - United States of America
+
+
-
P is for printf
-
+
+
@@ -2148,15 +2179,18 @@ Location: AU - Commonwealth of Australia
+
+
-
Q is for qsort
-
+
+
+
-
R is for return
-
+
+
@@ -2269,10 +2303,12 @@ Location: US - United States of America
+
+
-
S is for switch
-
+
+
@@ -2496,10 +2532,12 @@ Location: FI - Republic of Finland (2006/sykes1 - Best Assembler
2006/sykes2 - Best One Liner
+
+
-
T is for true
-
+
+
@@ -2579,15 +2617,18 @@ Location: DE - Federal Republic of Germany
2020/tsoj - Most misleading indentation
+
+
-
U is for union
-
+
+
+
-
V is for volatile
-
+
+
@@ -2630,10 +2671,12 @@ Location: US - United States of America
+
+
-
W is for while
-
+
+
@@ -2728,15 +2771,18 @@ Location: ZZ - Unknown location
+
+
-
X is for xor
-
+
+
+
-
Y is for y0
-
+
+
@@ -2759,10 +2805,12 @@ Location: US - United States of America
2019/yang - Most in need of transparency
2020/yang - Best abuse of CPP
+
+
-
Z is for zlib
-
+
+
@@ -2800,6 +2848,10 @@ Location: US - United States of America
+
+
+Jump to: top
+
diff --git a/bin/gen-authors.sh b/bin/gen-authors.sh
index 0941d3fb1..8ad5602fe 100755
--- a/bin/gen-authors.sh
+++ b/bin/gen-authors.sh
@@ -83,7 +83,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.1 2024-04-16"
+export VERSION="1.9 2024-04-21"
NAME=$(basename "$0")
export NAME
export V_FLAG=0
@@ -819,6 +819,7 @@ EOF
# process each line in the temporary sort word list file
#
+ export PREV_FILENAME="."
while read -r sort_word filename; do
# case: we have a "letter ." line
@@ -828,9 +829,15 @@ EOF
# output the letter header
#
l="$sort_word"
- echo ""
+ echo ""
+ if [[ $PREV_FILENAME != '.' ]]; then
+ echo '
'
+ fi
+ echo "
"
echo "## ${IS_FOR[$l]}"
- echo "
"
+ echo '
'
+ echo ""
+ echo "
"
echo
# case: we have a "sort_word file" line
@@ -902,7 +909,7 @@ EOF
fi
echo ""
- # output YYYY/dir set made bu this author
+ # output YYYY/dir set made by this author
#
output_entry_ids "$filename" | while read -r ENTRY_ID; do
@@ -962,7 +969,10 @@ EOF
done
echo
fi
+ PREV_FILENAME="$filename"
done < "$TMP_SORT_WORD"
+ echo '
'
+ echo 'Jump to: top
'
} | if [[ -z $NOOP ]]; then
cat >> "$TMP_AUTHORS_MD"
else