mirror of
git://git.sv.gnu.org/coreutils
synced 2026-05-20 06:52:05 -04:00
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:
+3
-1
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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;
|
||||
|
||||
@@ -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
@@ -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
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
@@ -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'
|
||||
|
||||
@@ -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
@@ -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
@@ -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
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
@@ -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
@@ -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
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user