aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert1993-08-09 22:06:00 +0000
committerPaul Eggert1993-08-09 22:06:00 +0000
commit194bf419bba44105754792f1ac251274a47ea3f9 (patch)
tree2f80f84b1de82f09ecb4f5dfa54c4b30f41b0c33 /lib-src
parent0db70aa270d5caf38da1653d7fa9527e73e2d7c0 (diff)
downloademacs-194bf419bba44105754792f1ac251274a47ea3f9.tar.gz
emacs-194bf419bba44105754792f1ac251274a47ea3f9.zip
(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)".
Diffstat (limited to 'lib-src')
-rwxr-xr-xlib-src/rcs2log12
1 files changed, 11 insertions, 1 deletions
diff --git a/lib-src/rcs2log b/lib-src/rcs2log
index 19e16abe97b..cd539752a31 100755
--- a/lib-src/rcs2log
+++ b/lib-src/rcs2log
@@ -12,7 +12,7 @@
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
@@ -173,6 +173,16 @@ case $authors in
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)