convert 2-author programs to use proper_name

g grep -E -l 'define AUTHORS "[^,]+", "[^,]+"$'|xargs perl -pi -e \
  's/(define AUTHORS) ("[^,]+"), ("[^,]+")$/$1 \\\n  proper_name ($2), \\\n  proper_name ($3)/'
This commit is contained in:
Jim Meyering
2008-05-19 16:26:25 +02:00
parent b69b4cca95
commit be2abe31fd
25 changed files with 75 additions and 25 deletions
+3 -1
View File
@@ -31,7 +31,9 @@
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "chcon"
#define AUTHORS "Russell Coker", "Jim Meyering"
#define AUTHORS \
proper_name ("Russell Coker"), \
proper_name ("Jim Meyering")
enum Change_status
{
+3 -1
View File
@@ -34,7 +34,9 @@
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "chgrp"
#define AUTHORS "David MacKenzie", "Jim Meyering"
#define AUTHORS \
proper_name ("David MacKenzie"), \
proper_name ("Jim Meyering")
#if ! HAVE_ENDGRENT
# define endgrent() ((void) 0)
+3 -1
View File
@@ -34,7 +34,9 @@
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "chmod"
#define AUTHORS "David MacKenzie", "Jim Meyering"
#define AUTHORS \
proper_name ("David MacKenzie"), \
proper_name ("Jim Meyering")
enum Change_status
{
+3 -1
View File
@@ -43,7 +43,9 @@
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "chown"
#define AUTHORS "David MacKenzie", "Jim Meyering"
#define AUTHORS \
proper_name ("David MacKenzie"), \
proper_name ("Jim Meyering")
/* The name the program was run with. */
char *program_name;
+3 -1
View File
@@ -31,7 +31,9 @@
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "comm"
#define AUTHORS "Richard Stallman", "David MacKenzie"
#define AUTHORS \
proper_name ("Richard Stallman"), \
proper_name ("David MacKenzie")
/* Undefine, to avoid warning about redefinition on some systems. */
#undef min
+3 -1
View File
@@ -49,7 +49,9 @@
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "csplit"
#define AUTHORS "Stuart Kemp", "David MacKenzie"
#define AUTHORS \
proper_name ("Stuart Kemp"), \
proper_name ("David MacKenzie")
/* Increment size of area for control records. */
#define ALLOC_SIZE 20
+3 -1
View File
@@ -31,7 +31,9 @@
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "dirname"
#define AUTHORS "David MacKenzie", "Jim Meyering"
#define AUTHORS \
proper_name ("David MacKenzie"), \
proper_name ("Jim Meyering")
/* The name this program was run with. */
char *program_name;
+3 -1
View File
@@ -88,7 +88,9 @@
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "env"
#define AUTHORS "Richard Mlynarik", "David MacKenzie"
#define AUTHORS \
proper_name ("Richard Mlynarik"), \
proper_name ("David MacKenzie")
int putenv ();
+3 -1
View File
@@ -35,7 +35,9 @@ char *program_name;
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "groups"
#define AUTHORS "David MacKenzie", "James Youngman"
#define AUTHORS \
proper_name ("David MacKenzie"), \
proper_name ("James Youngman")
static struct option const longopts[] =
+3 -1
View File
@@ -42,7 +42,9 @@
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "head"
#define AUTHORS "David MacKenzie", "Jim Meyering"
#define AUTHORS \
proper_name ("David MacKenzie"), \
proper_name ("Jim Meyering")
/* Number of lines/chars/blocks to head. */
#define DEFAULT_NUMBER 10
+3 -1
View File
@@ -34,7 +34,9 @@
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "id"
#define AUTHORS "Arnold Robbins", "David MacKenzie"
#define AUTHORS \
proper_name ("Arnold Robbins"), \
proper_name ("David MacKenzie")
/* If nonzero, output only the SELinux context. -Z */
static int just_context = 0;
+3 -1
View File
@@ -35,7 +35,9 @@
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "ln"
#define AUTHORS "Mike Parker", "David MacKenzie"
#define AUTHORS \
proper_name ("Mike Parker"), \
proper_name ("David MacKenzie")
#ifndef ENABLE_HARD_LINK_TO_SYMLINK_WARNING
# define ENABLE_HARD_LINK_TO_SYMLINK_WARNING 0
+3 -1
View File
@@ -110,7 +110,9 @@
: (ls_mode == LS_MULTI_COL \
? "dir" : "vdir"))
#define AUTHORS "Richard Stallman", "David MacKenzie"
#define AUTHORS \
proper_name ("Richard Stallman"), \
proper_name ("David MacKenzie")
#define obstack_chunk_alloc malloc
#define obstack_chunk_free free
+3 -1
View File
@@ -35,7 +35,9 @@
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "nl"
#define AUTHORS "Scott Bartram", "David MacKenzie"
#define AUTHORS \
proper_name ("Scott Bartram"), \
proper_name ("David MacKenzie")
/* Line-number formats. They are given an int width, an intmax_t
value, and a string separator. */
+3 -1
View File
@@ -47,7 +47,9 @@
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "paste"
#define AUTHORS "David M. Ihnat", "David MacKenzie"
#define AUTHORS \
proper_name ("David M. Ihnat"), \
proper_name ("David MacKenzie")
/* Indicates that no delimiter should be added in the current position. */
#define EMPTY_DELIM '\0'
+3 -1
View File
@@ -325,7 +325,9 @@
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "pr"
#define AUTHORS "Pete TerMaat", "Roland Huebner"
#define AUTHORS \
proper_name ("Pete TerMaat"), \
proper_name ("Roland Huebner")
/* Used with start_position in the struct COLUMN described below.
If start_position == ANYWHERE, we aren't truncating columns and
+3 -1
View File
@@ -41,7 +41,9 @@ enum { PRINTENV_FAILURE = 2 };
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "printenv"
#define AUTHORS "David MacKenzie", "Richard Mlynarik"
#define AUTHORS \
proper_name ("David MacKenzie"), \
proper_name ("Richard Mlynarik")
/* The name this program was run with. */
char *program_name;
+3 -1
View File
@@ -30,7 +30,9 @@
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "sleep"
#define AUTHORS "Jim Meyering", "Paul Eggert"
#define AUTHORS \
proper_name ("Jim Meyering"), \
proper_name ("Paul Eggert")
/* The name by which this program was run. */
char *program_name;
+3 -1
View File
@@ -55,7 +55,9 @@ struct rlimit { size_t rlim_cur; };
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "sort"
#define AUTHORS "Mike Haertel", "Paul Eggert"
#define AUTHORS \
proper_name ("Mike Haertel"), \
proper_name ("Paul Eggert")
#if HAVE_LANGINFO_CODESET
# include <langinfo.h>
+3 -1
View File
@@ -31,7 +31,9 @@
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "sum"
#define AUTHORS "Kayvan Aghaiepour", "David MacKenzie"
#define AUTHORS \
proper_name ("Kayvan Aghaiepour"), \
proper_name ("David MacKenzie")
/* The name this program was run with. */
char *program_name;
+3 -1
View File
@@ -52,7 +52,9 @@ tac -r -s '.\|
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "tac"
#define AUTHORS "Jay Lepreau", "David MacKenzie"
#define AUTHORS \
proper_name ("Jay Lepreau"), \
proper_name ("David MacKenzie")
#if defined __MSDOS__ || defined _WIN32
/* Define this to non-zero on systems for which the regular mechanism
+3 -1
View File
@@ -785,7 +785,9 @@ test treats each of those as it treats any other nonempty STRING.\n\
# define main test_command
#endif
#define AUTHORS "Kevin Braunsdorf", "Matthew Bradburn"
#define AUTHORS \
proper_name ("Kevin Braunsdorf"), \
proper_name ("Matthew Bradburn")
/*
* [:
+3 -1
View File
@@ -36,7 +36,9 @@
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "uniq"
#define AUTHORS "Richard Stallman", "David MacKenzie"
#define AUTHORS \
proper_name ("Richard Stallman"), \
proper_name ("David MacKenzie")
#define SWAP_LINES(A, B) \
do \
+3 -1
View File
@@ -31,7 +31,9 @@
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "users"
#define AUTHORS "Joseph Arceneaux", "David MacKenzie"
#define AUTHORS \
proper_name ("Joseph Arceneaux"), \
proper_name ("David MacKenzie")
/* The name this program was run with. */
char *program_name;
+3 -1
View File
@@ -42,7 +42,9 @@
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "wc"
#define AUTHORS "Paul Rubin", "David MacKenzie"
#define AUTHORS \
proper_name ("Paul Rubin"), \
proper_name ("David MacKenzie")
/* Size of atomic reads. */
#define BUFFER_SIZE (16 * 1024)