diff options
author | Jim Meyering <meyering@redhat.com> | 2008-05-19 16:24:27 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-05-26 08:40:32 +0200 |
commit | b69b4cca953a9a0a13edf026ea104d13dc956bd3 (patch) | |
tree | c015ee1d335da9c4d97c544da8c2f5bf8eac28f0 | |
parent | 7855cbfcac867621c18d1fc85abe5332f6aae1ec (diff) | |
download | coreutils-b69b4cca953a9a0a13edf026ea104d13dc956bd3.tar.xz |
convert single-author programs to use proper_name
g grep -E -l 'define AUTHORS "[^,]+"$'|xargs perl -pi -e \
's/(define AUTHORS) ("[^,]+")$/$1 proper_name ($2)/'
-rw-r--r-- | src/basename.c | 2 | ||||
-rw-r--r-- | src/chroot.c | 2 | ||||
-rw-r--r-- | src/cksum.c | 2 | ||||
-rw-r--r-- | src/date.c | 2 | ||||
-rw-r--r-- | src/dircolors.c | 2 | ||||
-rw-r--r-- | src/echo.c | 2 | ||||
-rw-r--r-- | src/expand.c | 2 | ||||
-rw-r--r-- | src/expr.c | 2 | ||||
-rw-r--r-- | src/factor.c | 2 | ||||
-rw-r--r-- | src/fmt.c | 2 | ||||
-rw-r--r-- | src/fold.c | 2 | ||||
-rw-r--r-- | src/hostid.c | 2 | ||||
-rw-r--r-- | src/hostname.c | 2 | ||||
-rw-r--r-- | src/install.c | 2 | ||||
-rw-r--r-- | src/join.c | 2 | ||||
-rw-r--r-- | src/kill.c | 2 | ||||
-rw-r--r-- | src/link.c | 2 | ||||
-rw-r--r-- | src/logname.c | 2 | ||||
-rw-r--r-- | src/mkdir.c | 2 | ||||
-rw-r--r-- | src/mkfifo.c | 2 | ||||
-rw-r--r-- | src/mknod.c | 2 | ||||
-rw-r--r-- | src/mktemp.c | 2 | ||||
-rw-r--r-- | src/nice.c | 2 | ||||
-rw-r--r-- | src/nohup.c | 2 | ||||
-rw-r--r-- | src/od.c | 2 | ||||
-rw-r--r-- | src/printf.c | 2 | ||||
-rw-r--r-- | src/pwd.c | 2 | ||||
-rw-r--r-- | src/readlink.c | 2 | ||||
-rw-r--r-- | src/rmdir.c | 2 | ||||
-rw-r--r-- | src/runcon.c | 2 | ||||
-rw-r--r-- | src/seq.c | 2 | ||||
-rw-r--r-- | src/setuidgid.c | 2 | ||||
-rw-r--r-- | src/shred.c | 2 | ||||
-rw-r--r-- | src/shuf.c | 2 | ||||
-rw-r--r-- | src/stat.c | 2 | ||||
-rw-r--r-- | src/stty.c | 2 | ||||
-rw-r--r-- | src/su.c | 2 | ||||
-rw-r--r-- | src/sync.c | 2 | ||||
-rw-r--r-- | src/tr.c | 2 | ||||
-rw-r--r-- | src/true.c | 2 | ||||
-rw-r--r-- | src/tsort.c | 2 | ||||
-rw-r--r-- | src/tty.c | 2 | ||||
-rw-r--r-- | src/uname.c | 2 | ||||
-rw-r--r-- | src/unexpand.c | 2 | ||||
-rw-r--r-- | src/unlink.c | 2 | ||||
-rw-r--r-- | src/whoami.c | 2 | ||||
-rw-r--r-- | src/yes.c | 2 |
47 files changed, 47 insertions, 47 deletions
diff --git a/src/basename.c b/src/basename.c index f26de8d10..76163b164 100644 --- a/src/basename.c +++ b/src/basename.c @@ -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; diff --git a/src/chroot.c b/src/chroot.c index 90b0b967b..e3621fd70 100644 --- a/src/chroot.c +++ b/src/chroot.c @@ -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; diff --git a/src/cksum.c b/src/cksum.c index 9901f6ad1..5b594fd6b 100644 --- a/src/cksum.c +++ b/src/cksum.c @@ -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> diff --git a/src/date.c b/src/date.c index ba88eb83b..282fa2ae8 100644 --- a/src/date.c +++ b/src/date.c @@ -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 (); diff --git a/src/dircolors.c b/src/dircolors.c index 2a9007571..d51d409db 100644 --- a/src/dircolors.c +++ b/src/dircolors.c @@ -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 diff --git a/src/echo.c b/src/echo.c index f4e91f7da..cd97cd0ad 100644 --- a/src/echo.c +++ b/src/echo.c @@ -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 diff --git a/src/expand.c b/src/expand.c index fd4cab0d7..023d525f7 100644 --- a/src/expand.c +++ b/src/expand.c @@ -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. */ diff --git a/src/expr.c b/src/expr.c index cd498f645..1f740e201 100644 --- a/src/expr.c +++ b/src/expr.c @@ -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 diff --git a/src/factor.c b/src/factor.c index b54a17095..5ee4a035a 100644 --- a/src/factor.c +++ b/src/factor.c @@ -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 " @@ -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. */ diff --git a/src/fold.c b/src/fold.c index d74167a89..948968069 100644 --- a/src/fold.c +++ b/src/fold.c @@ -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; diff --git a/src/hostid.c b/src/hostid.c index ea50086eb..95ee7c22b 100644 --- a/src/hostid.c +++ b/src/hostid.c @@ -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; diff --git a/src/hostname.c b/src/hostname.c index 4be2185c1..5bd67b90f 100644 --- a/src/hostname.c +++ b/src/hostname.c @@ -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 (); diff --git a/src/install.c b/src/install.c index 13feb850e..308b022ac 100644 --- a/src/install.c +++ b/src/install.c @@ -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> diff --git a/src/join.c b/src/join.c index b8a001199..c14cc1e66 100644 --- a/src/join.c +++ b/src/join.c @@ -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 diff --git a/src/kill.c b/src/kill.c index 8d1a1c202..95e769777 100644 --- a/src/kill.c +++ b/src/kill.c @@ -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") #if ! (HAVE_DECL_STRSIGNAL || defined strsignal) # if ! (HAVE_DECL_SYS_SIGLIST || defined sys_siglist) diff --git a/src/link.c b/src/link.c index 4c576e1cf..08e7b1074 100644 --- a/src/link.c +++ b/src/link.c @@ -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; diff --git a/src/logname.c b/src/logname.c index 7e85b5a66..290f6bb21 100644 --- a/src/logname.c +++ b/src/logname.c @@ -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; diff --git a/src/mkdir.c b/src/mkdir.c index d3d76ad48..d865407b2 100644 --- a/src/mkdir.c +++ b/src/mkdir.c @@ -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; diff --git a/src/mkfifo.c b/src/mkfifo.c index 6abd1bea9..cfe9b51be 100644 --- a/src/mkfifo.c +++ b/src/mkfifo.c @@ -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; diff --git a/src/mknod.c b/src/mknod.c index 445117c90..b67d88cd2 100644 --- a/src/mknod.c +++ b/src/mknod.c @@ -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; diff --git a/src/mktemp.c b/src/mktemp.c index 6f12d9947..c25f4b3d7 100644 --- a/src/mktemp.c +++ b/src/mktemp.c @@ -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"; diff --git a/src/nice.c b/src/nice.c index 79e770850..b722d9640 100644 --- a/src/nice.c +++ b/src/nice.c @@ -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) diff --git a/src/nohup.c b/src/nohup.c index 275316485..ea4befef8 100644 --- a/src/nohup.c +++ b/src/nohup.c @@ -34,7 +34,7 @@ #define PROGRAM_NAME "nohup" -#define AUTHORS "Jim Meyering" +#define AUTHORS proper_name ("Jim Meyering") /* Exit statuses. */ enum @@ -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> diff --git a/src/printf.c b/src/printf.c index e2536c797..cd3e94a8a 100644 --- a/src/printf.c +++ b/src/printf.c @@ -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 : \ @@ -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 { diff --git a/src/readlink.c b/src/readlink.c index 859e2a30c..3121433a3 100644 --- a/src/readlink.c +++ b/src/readlink.c @@ -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; diff --git a/src/rmdir.c b/src/rmdir.c index 5f7f54116..b090d7a85 100644 --- a/src/rmdir.c +++ b/src/rmdir.c @@ -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; diff --git a/src/runcon.c b/src/runcon.c index 418860146..3c45c6fec 100644 --- a/src/runcon.c +++ b/src/runcon.c @@ -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'}, @@ -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; diff --git a/src/setuidgid.c b/src/setuidgid.c index 83369fdef..dde5e04fd 100644 --- a/src/setuidgid.c +++ b/src/setuidgid.c @@ -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 diff --git a/src/shred.c b/src/shred.c index 7d794d607..4a1313383 100644 --- a/src/shred.c +++ b/src/shred.c @@ -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> diff --git a/src/shuf.c b/src/shuf.c index b516ec33d..1ab879507 100644 --- a/src/shuf.c +++ b/src/shuf.c @@ -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; diff --git a/src/stat.c b/src/stat.c index 0f25df4e9..2129dce12 100644 --- a/src/stat.c +++ b/src/stat.c @@ -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 { diff --git a/src/stty.c b/src/stty.c index c7b8780d7..d27f1eff5 100644 --- a/src/stty.c +++ b/src/stty.c @@ -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 @@ -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> diff --git a/src/sync.c b/src/sync.c index 4cc481259..9534082ba 100644 --- a/src/sync.c +++ b/src/sync.c @@ -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; @@ -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 }; diff --git a/src/true.c b/src/true.c index 4ce3fe6cb..eebfaeeef 100644 --- a/src/true.c +++ b/src/true.c @@ -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; diff --git a/src/tsort.c b/src/tsort.c index 8ebacb4d8..f6dde8ac1 100644 --- a/src/tsort.c +++ b/src/tsort.c @@ -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" @@ -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; diff --git a/src/uname.c b/src/uname.c index 5d04e6f88..a55f281df 100644 --- a/src/uname.c +++ b/src/uname.c @@ -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'. */ diff --git a/src/unexpand.c b/src/unexpand.c index 488fc67a2..4f15a0fd8 100644 --- a/src/unexpand.c +++ b/src/unexpand.c @@ -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. */ diff --git a/src/unlink.c b/src/unlink.c index 15a04a03a..71379349e 100644 --- a/src/unlink.c +++ b/src/unlink.c @@ -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; diff --git a/src/whoami.c b/src/whoami.c index 0e3a97d59..93123572f 100644 --- a/src/whoami.c +++ b/src/whoami.c @@ -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; @@ -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; |