]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
convert single-author programs to use proper_name
authorJim Meyering <meyering@redhat.com>
Mon, 19 May 2008 14:24:27 +0000 (16:24 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 26 May 2008 06:40:32 +0000 (08:40 +0200)
g grep -E -l 'define AUTHORS "[^,]+"$'|xargs perl -pi -e \
  's/(define AUTHORS) ("[^,]+")$/$1 proper_name ($2)/'

47 files changed:
src/basename.c
src/chroot.c
src/cksum.c
src/date.c
src/dircolors.c
src/echo.c
src/expand.c
src/expr.c
src/factor.c
src/fmt.c
src/fold.c
src/hostid.c
src/hostname.c
src/install.c
src/join.c
src/kill.c
src/link.c
src/logname.c
src/mkdir.c
src/mkfifo.c
src/mknod.c
src/mktemp.c
src/nice.c
src/nohup.c
src/od.c
src/printf.c
src/pwd.c
src/readlink.c
src/rmdir.c
src/runcon.c
src/seq.c
src/setuidgid.c
src/shred.c
src/shuf.c
src/stat.c
src/stty.c
src/su.c
src/sync.c
src/tr.c
src/true.c
src/tsort.c
src/tty.c
src/uname.c
src/unexpand.c
src/unlink.c
src/whoami.c
src/yes.c

index f26de8d10fd3e070263dcdc9dfe458ee6a595fcc..76163b164d6079f5e373287285c3b97045321afc 100644 (file)
@@ -37,7 +37,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "basename"
 
-#define AUTHORS "FIXME unknown"
+#define AUTHORS proper_name ("FIXME unknown")
 
 /* The name this program was run with. */
 char *program_name;
index 90b0b967b01bcf6ef86676088bbcff554125c35f..e3621fd70458ec4bc64db1c67c98563ae369a2e2 100644 (file)
@@ -29,7 +29,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "chroot"
 
-#define AUTHORS "Roland McGrath"
+#define AUTHORS proper_name ("Roland McGrath")
 
 /* The name this program was run with, for error messages. */
 char *program_name;
index 9901f6ad125d6ced5bf185c32ab9c868ba130423..5b594fd6b2f11f475cacc872de6157f26452408a 100644 (file)
@@ -37,7 +37,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "cksum"
 
-#define AUTHORS "Q. Frank Xia"
+#define AUTHORS proper_name ("Q. Frank Xia")
 
 #include <stdio.h>
 #include <sys/types.h>
index ba88eb83be91128d69f38af036636e1c3ad54244..282fa2ae81180facf9bcea585b3cace4cb1dde80 100644 (file)
@@ -37,7 +37,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "date"
 
-#define AUTHORS "David MacKenzie"
+#define AUTHORS proper_name ("David MacKenzie")
 
 int putenv ();
 
index 2a9007571a80abaf8cde894ca906a4a8c256d85b..d51d409dbb3acc14b03478aa17f73b2e1183c5b4 100644 (file)
@@ -32,7 +32,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "dircolors"
 
-#define AUTHORS "H. Peter Anvin"
+#define AUTHORS proper_name ("H. Peter Anvin")
 
 #define obstack_chunk_alloc malloc
 #define obstack_chunk_free free
index f4e91f7dab0a1d657fc283145423c5029dbd79e3..cd97cd0ad5339715a116d9c81da3eb15f334179c 100644 (file)
@@ -24,7 +24,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "echo"
 
-#define AUTHORS "FIXME unknown"
+#define AUTHORS proper_name ("FIXME unknown")
 
 /* echo [-neE] [arg ...]
 Output the ARGs.  If -n is specified, the trailing newline is
index fd4cab0d78aa70794f5501f99fc3887689bdf816..023d525f759b8d296839299ab85cfa7b5877b3a6 100644 (file)
@@ -45,7 +45,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "expand"
 
-#define AUTHORS "David MacKenzie"
+#define AUTHORS proper_name ("David MacKenzie")
 
 /* The number of bytes added at a time to the amount of memory
    allocated for the output line.  */
index cd498f6451bfa7894b7a0e0986af52d24c66a1fc..1f740e2019b2ec220497860ebbe31c704f18fb28 100644 (file)
@@ -43,7 +43,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "expr"
 
-#define AUTHORS "Mike Parker"
+#define AUTHORS proper_name ("Mike Parker")
 
 /* Exit statuses.  */
 enum
index b54a17095445f1cf603abcf703f1f758b420f7ca..5ee4a035a7ca19521a8e2c2cd5e0925b5041a038 100644 (file)
@@ -36,7 +36,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "factor"
 
-#define AUTHORS "Paul Rubin"
+#define AUTHORS proper_name ("Paul Rubin")
 
 /* Token delimiters when reading from a file.  */
 #define DELIM "\n\t "
index a3e00141041a468d77580cd788d19a320afa263d..2a9e3c543ef0e061d05b760e25c76ba95cdeb70f 100644 (file)
--- a/src/fmt.c
+++ b/src/fmt.c
@@ -33,7 +33,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "fmt"
 
-#define AUTHORS "Ross Paterson"
+#define AUTHORS proper_name ("Ross Paterson")
 
 /* The following parameters represent the program's idea of what is
    "best".  Adjust to taste, subject to the caveats given.  */
index d74167a893fb197d7f6eeaee9a01f8ab477e39b3..948968069f3aa21598f74139dcfbef1ded8e4d88 100644 (file)
@@ -32,7 +32,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "fold"
 
-#define AUTHORS "David MacKenzie"
+#define AUTHORS proper_name ("David MacKenzie")
 
 /* The name this program was run with. */
 char *program_name;
index ea50086eb0b759b27756030115ec57eced70935f..95ee7c22b4514e3e1a82e58c9a78a9b34de04c37 100644 (file)
@@ -31,7 +31,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "hostid"
 
-#define AUTHORS "Jim Meyering"
+#define AUTHORS proper_name ("Jim Meyering")
 
 /* The name this program was run with, for error messages. */
 char *program_name;
index 4be2185c17f5593761905dfd6a9982caddc8bff7..5bd67b90f0ebcc25222a3d48427eef9341f2afd0 100644 (file)
@@ -30,7 +30,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "hostname"
 
-#define AUTHORS "Jim Meyering"
+#define AUTHORS proper_name ("Jim Meyering")
 
 #if HAVE_SETHOSTNAME && !defined sethostname
 int sethostname ();
index 13feb850ec4ef051f8de055b5075b392078716c6..308b022ac1b31e6fd80e8ddc29cbf3a25f39c8b8 100644 (file)
@@ -45,7 +45,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "install"
 
-#define AUTHORS "David MacKenzie"
+#define AUTHORS proper_name ("David MacKenzie")
 
 #if HAVE_SYS_WAIT_H
 # include <sys/wait.h>
index b8a00119963bc04caab6570b60f98069aff66ec8..c14cc1e66595aae0aa06fc2471725b003e5110d4 100644 (file)
@@ -36,7 +36,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "join"
 
-#define AUTHORS "Mike Haertel"
+#define AUTHORS proper_name ("Mike Haertel")
 
 #define join system_join
 
index 8d1a1c202feafdcdbab5b3c779205ff65b27db83..95e769777ec7298342c0314f4dfda0f545864ea7 100644 (file)
@@ -39,7 +39,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "kill"
 
-#define AUTHORS "Paul Eggert"
+#define AUTHORS proper_name ("Paul Eggert")
 \f
 #if ! (HAVE_DECL_STRSIGNAL || defined strsignal)
 # if ! (HAVE_DECL_SYS_SIGLIST || defined sys_siglist)
index 4c576e1cffd33be06e130a4a5dd3fbb0c571b00f..08e7b107414148dd19e44f82cb2dbfdb90dd9027 100644 (file)
@@ -33,7 +33,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "link"
 
-#define AUTHORS "Michael Stone"
+#define AUTHORS proper_name ("Michael Stone")
 
 /* Name this program was run with.  */
 char *program_name;
index 7e85b5a669ef69f477dfd94024e1ea9f54f20edc..290f6bb21ed2ddf4972290a3a877d7a1f1966dd9 100644 (file)
@@ -27,7 +27,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "logname"
 
-#define AUTHORS "FIXME: unknown"
+#define AUTHORS proper_name ("FIXME: unknown")
 
 /* The name this program was run with. */
 char *program_name;
index d3d76ad4890a6d4c3f44788836f90a016e20e3f2..d865407b2cc29c70a4b2c4fdc3dd9bc8d5db0bf1 100644 (file)
@@ -34,7 +34,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "mkdir"
 
-#define AUTHORS "David MacKenzie"
+#define AUTHORS proper_name ("David MacKenzie")
 
 /* The name this program was run with. */
 char *program_name;
index 6abd1bea9f10709f6584f6006e53346d02a48c3e..cfe9b51be8a1f7a5177e06f75e1a8a0db1d79b13 100644 (file)
@@ -30,7 +30,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "mkfifo"
 
-#define AUTHORS "David MacKenzie"
+#define AUTHORS proper_name ("David MacKenzie")
 
 /* The name this program was run with. */
 char *program_name;
index 445117c90c53f970f243e65c9c7695adec7bcee8..b67d88cd2fc829b8ea9469d72741623b5f40b8cd 100644 (file)
@@ -31,7 +31,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "mknod"
 
-#define AUTHORS "David MacKenzie"
+#define AUTHORS proper_name ("David MacKenzie")
 
 /* The name this program was run with. */
 char *program_name;
index 6f12d994784ee2170c1592220380b2dd575570e2..c25f4b3d7b837d838dd8a8b05a45d346fe8701ab 100644 (file)
@@ -31,7 +31,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "mktemp"
 
-#define AUTHORS "Jim Meyering"
+#define AUTHORS proper_name ("Jim Meyering")
 
 static const char *default_template = "tmp.XXXXXXXXXX";
 
index 79e77085045f26616e29ad8dce698a79f8e7bc1a..b722d96408bb8deaaf869926dfd938119265f45d 100644 (file)
@@ -37,7 +37,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "nice"
 
-#define AUTHORS "David MacKenzie"
+#define AUTHORS proper_name ("David MacKenzie")
 
 #if HAVE_NICE
 # define GET_NICENESS() nice (0)
index 275316485bbdda69b4185dc00e7c3c53b3b8002b..ea4befef8972979cb874ae5f52aa82ecaff7619e 100644 (file)
@@ -34,7 +34,7 @@
 
 #define PROGRAM_NAME "nohup"
 
-#define AUTHORS "Jim Meyering"
+#define AUTHORS proper_name ("Jim Meyering")
 
 /* Exit statuses.  */
 enum
index 250a02d6aa3f2f7b1a91a08f8943737d35ff61f3..f6080d7f23dd480e20cc9a89fd62276edab1b5d0 100644 (file)
--- a/src/od.c
+++ b/src/od.c
@@ -30,7 +30,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "od"
 
-#define AUTHORS "Jim Meyering"
+#define AUTHORS proper_name ("Jim Meyering")
 
 #include <float.h>
 
index e2536c797cb5fe7ad9daeebc0d3d3de3bfbd7e6a..cd3e94a8adf5f8aec2dfea44245ff5e43669faea 100644 (file)
@@ -60,7 +60,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "printf"
 
-#define AUTHORS "David MacKenzie"
+#define AUTHORS proper_name ("David MacKenzie")
 
 #define isodigit(c) ((c) >= '0' && (c) <= '7')
 #define hextobin(c) ((c) >= 'a' && (c) <= 'f' ? (c) - 'a' + 10 : \
index 28df3e6a7c273a9e40ff8cebc68a40d09eb8eb69..bfdec85ca1ae5022e5fa76f0364a9f03e4d06982 100644 (file)
--- a/src/pwd.c
+++ b/src/pwd.c
@@ -30,7 +30,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "pwd"
 
-#define AUTHORS "Jim Meyering"
+#define AUTHORS proper_name ("Jim Meyering")
 
 struct file_name
 {
index 859e2a30cedafde04e4b4205a8dd9ea438b5a7ba..3121433a398850e565df21da159754b2c441ff1e 100644 (file)
@@ -30,7 +30,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "readlink"
 
-#define AUTHORS "Dmitry V. Levin"
+#define AUTHORS proper_name ("Dmitry V. Levin")
 
 /* Name this program was run with.  */
 char *program_name;
index 5f7f54116db6708538826ff3d00792ba3c08d8df..b090d7a852675b7ec6217ea21fd564bc4436d0cb 100644 (file)
@@ -36,7 +36,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "rmdir"
 
-#define AUTHORS "David MacKenzie"
+#define AUTHORS proper_name ("David MacKenzie")
 
 /* The name this program was run with. */
 char *program_name;
index 418860146ca7d1b63e357c26f8fcc1dc76f74a20..3c45c6fec8bd0215ea0b4963221c7fc0bbc79272 100644 (file)
@@ -43,7 +43,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "runcon"
 
-#define AUTHORS "Russell Coker"
+#define AUTHORS proper_name ("Russell Coker")
 
 static struct option long_options[] = {
   {"role", required_argument, NULL, 'r'},
index efc0c7243ab3ed9e72b78810d52a3879b97e2b56..2277e7eae86834b0f7b4087a5b19c4d9174eeb8e 100644 (file)
--- a/src/seq.c
+++ b/src/seq.c
@@ -38,7 +38,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "seq"
 
-#define AUTHORS "Ulrich Drepper"
+#define AUTHORS proper_name ("Ulrich Drepper")
 
 /* If true print all number with equal width.  */
 static bool equal_width;
index 83369fdef93018ac18e014e72af39deb69995964..dde5e04fdf2ce35af5569d6dd79b37cce949c169 100644 (file)
@@ -35,7 +35,7 @@
 
 /* I wrote this program from scratch, based on the description of
    D.J. Bernstein's program: http://cr.yp.to/daemontools/setuidgid.html.  */
-#define AUTHORS "Jim Meyering"
+#define AUTHORS proper_name ("Jim Meyering")
 
 #define SETUIDGID_FAILURE 111
 
index 7d794d607677cbac6202d333ede4cc82135cb127..4a1313383bd9de92ddbd0181232443bd2bea58e4 100644 (file)
@@ -82,7 +82,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "shred"
 
-#define AUTHORS "Colin Plumb"
+#define AUTHORS proper_name ("Colin Plumb")
 
 #include <config.h>
 
index b516ec33d8da8807b5717be600542fa5753a1807..1ab879507594cc2e7fcca6825377d4fbd15f43a8 100644 (file)
@@ -34,7 +34,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "shuf"
 
-#define AUTHORS "Paul Eggert"
+#define AUTHORS proper_name ("Paul Eggert")
 
 /* The name this program was run with. */
 char *program_name;
index 0f25df4e9387808660d113dcad8a886225578298..2129dce12ac65221a8fdccf6a89db5223f615116 100644 (file)
@@ -150,7 +150,7 @@ statfs (char const *filename, struct fs_info *buf)
 
 #define PROGRAM_NAME "stat"
 
-#define AUTHORS "Michael Meskes"
+#define AUTHORS proper_name ("Michael Meskes")
 
 enum
 {
index c7b8780d72bdc1e317986db17ead146c0d322038..d27f1eff52e19f05ce5179944dc25c82849508f1 100644 (file)
@@ -66,7 +66,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "stty"
 
-#define AUTHORS "David MacKenzie"
+#define AUTHORS proper_name ("David MacKenzie")
 
 #ifndef _POSIX_VDISABLE
 # define _POSIX_VDISABLE 0
index 7778002f84d2e305144e579e01109ac237c87d78..0cb415a3b8f5201f863ecdbb3ccc824ff8d55b28 100644 (file)
--- a/src/su.c
+++ b/src/su.c
@@ -92,7 +92,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "su"
 
-#define AUTHORS "David MacKenzie"
+#define AUTHORS proper_name ("David MacKenzie")
 
 #if HAVE_PATHS_H
 # include <paths.h>
index 4cc481259863ef166d43e44bb8376c031369e095..9534082babec738976da44f9be889ebbbf22edd1 100644 (file)
@@ -28,7 +28,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "sync"
 
-#define AUTHORS "Jim Meyering"
+#define AUTHORS proper_name ("Jim Meyering")
 
 /* The name this program was run with. */
 char *program_name;
index a7565f8d43d7e0064575c7b6eb7a419703c4e8d6..d75dee352afe73c96208ad81977366a6035dcb63 100644 (file)
--- a/src/tr.c
+++ b/src/tr.c
@@ -32,7 +32,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "tr"
 
-#define AUTHORS "Jim Meyering"
+#define AUTHORS proper_name ("Jim Meyering")
 
 enum { N_CHARS = UCHAR_MAX + 1 };
 
index 4ce3fe6cb248fc5899237a3e09a9f5391b4a4722..eebfaeeefe47581bdd154d09f8af413d500d240d 100644 (file)
@@ -30,7 +30,7 @@
 # define PROGRAM_NAME "false"
 #endif
 
-#define AUTHORS "Jim Meyering"
+#define AUTHORS proper_name ("Jim Meyering")
 
 /* The name this program was run with. */
 char *program_name;
index 8ebacb4d8c528da986734cc53efe4e3863b888c7..f6dde8ac1459c0231f48b9b12e1c2a85aadf554b 100644 (file)
@@ -36,7 +36,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "tsort"
 
-#define AUTHORS "Mark Kettenis"
+#define AUTHORS proper_name ("Mark Kettenis")
 
 /* Token delimiters when reading from a file.  */
 #define DELIM " \t\n"
index 0a38093377ef7973bd72de135b259ef27a092243..dd98c3fe063902b4c9f43c2f87616dcba05b5b47 100644 (file)
--- a/src/tty.c
+++ b/src/tty.c
@@ -40,7 +40,7 @@ enum
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "tty"
 
-#define AUTHORS "David MacKenzie"
+#define AUTHORS proper_name ("David MacKenzie")
 
 /* The name under which this program was run. */
 char *program_name;
index 5d04e6f882b1a2a365581500e1db8d00bcccda00..a55f281df653658df1e5b05aa46dfd5dd7260ea3 100644 (file)
@@ -58,7 +58,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME (uname_mode == UNAME_UNAME ? "uname" : "arch")
 
-#define AUTHORS "David MacKenzie"
+#define AUTHORS proper_name ("David MacKenzie")
 #define ARCH_AUTHORS "David MacKenzie", "Karel Zak"
 
 /* Values that are bitwise or'd into `toprint'. */
index 488fc67a25dfac153c197d17c434073a1a8156bb..4f15a0fd813e335a971e7d1b0cbdfe7d53018473 100644 (file)
@@ -46,7 +46,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "unexpand"
 
-#define AUTHORS "David MacKenzie"
+#define AUTHORS proper_name ("David MacKenzie")
 
 /* The number of bytes added at a time to the amount of memory
    allocated for the output line.  */
index 15a04a03a39cca35cfac7907a49abb97c2881e49..71379349edf607a219327a9e7bb9fc5568e81490 100644 (file)
@@ -33,7 +33,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "unlink"
 
-#define AUTHORS "Michael Stone"
+#define AUTHORS proper_name ("Michael Stone")
 
 /* Name this program was run with.  */
 char *program_name;
index 0e3a97d59db01cb30d3e15dc8c442be03f5923aa..93123572ff77fd153404fb57330b5f90317a0290 100644 (file)
@@ -33,7 +33,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "whoami"
 
-#define AUTHORS "Richard Mlynarik"
+#define AUTHORS proper_name ("Richard Mlynarik")
 
 /* The name this program was run with. */
 char *program_name;
index b7892935089fad342d0e8460dfb8ffe27a6bf3ae..377bd9dfbb32e7efd8021bd12ed6e0a7fd82125d 100644 (file)
--- a/src/yes.c
+++ b/src/yes.c
@@ -29,7 +29,7 @@
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "yes"
 
-#define AUTHORS "David MacKenzie"
+#define AUTHORS proper_name ("David MacKenzie")
 
 /* The name this program was run with. */
 char *program_name;