comparison lib-src/rcs2log @ 4504:65ef94a9e2c4

(awkscript): Some sites put comma-separated junk after the fullname. Remove it, but leave "Bill Gates, Jr" alone. Remove the junk from fullnames like "0000-Admin(0000)".
author Paul Eggert <eggert@twinsun.com>
date Mon, 09 Aug 1993 22:06:00 +0000
parents 9ee93fc9aba0
children 0f5dd4938af9
comparison
equal deleted inserted replaced
4503:b6215383480a 4504:65ef94a9e2c4
10 # Clump together log entries that start with `{topic} ', 10 # Clump together log entries that start with `{topic} ',
11 # where `topic' contains neither white space nor `}'. 11 # where `topic' contains neither white space nor `}'.
12 12
13 # Author: Paul Eggert <eggert@twinsun.com> 13 # Author: Paul Eggert <eggert@twinsun.com>
14 14
15 # $Id: rcs2log,v 1.11 1993/05/03 17:55:22 eggert Exp rms $ 15 # $Id: rcs2log,v 1.12 1993/05/29 06:22:48 rms Exp eggert $
16 16
17 # Copyright 1992, 1993 Free Software Foundation, Inc. 17 # Copyright 1992, 1993 Free Software Foundation, Inc.
18 18
19 # This program is free software; you can redistribute it and/or modify 19 # This program is free software; you can redistribute it and/or modify
20 # it under the terms of the GNU General Public License as published by 20 # it under the terms of the GNU General Public License as published by
171 '"$initialize_author"' 171 '"$initialize_author"'
172 } 172 }
173 { 173 {
174 if (author[$1]) { 174 if (author[$1]) {
175 fullname = $5 175 fullname = $5
176 if (fullname ~ /[0-9]+-[^(]*\([0-9]+\)$/) {
177 # Remove the junk from fullnames like "0000-Admin(0000)".
178 fullname = substr(fullname, index(fullname, "-") + 1)
179 fullname = substr(fullname, 1, index(fullname, "(") - 1)
180 }
181 if (fullname ~ /,[^ ]/) {
182 # Some sites put comma-separated junk after the fullname.
183 # Remove it, but leave "Bill Gates, Jr" alone.
184 fullname = substr(fullname, 1, index(fullname, ",") - 1)
185 }
176 abbr = index(fullname, "&") 186 abbr = index(fullname, "&")
177 if (abbr) { 187 if (abbr) {
178 a = substr($1, 1, 1) 188 a = substr($1, 1, 1)
179 A = a 189 A = a
180 i = index(alphabet, a) 190 i = index(alphabet, a)