diff options
Diffstat (limited to 'gnu/usr.bin/patch/patch.c')
-rw-r--r-- | gnu/usr.bin/patch/patch.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gnu/usr.bin/patch/patch.c b/gnu/usr.bin/patch/patch.c index c3acfc7..e372ad3 100644 --- a/gnu/usr.bin/patch/patch.c +++ b/gnu/usr.bin/patch/patch.c @@ -1,5 +1,5 @@ char rcsid[] = - "$Header: /home/ncvs/src/gnu/usr.bin/patch/patch.c,v 1.12 1998/01/21 15:10:13 ache Exp $"; + "$Header: /home/ncvs/src/gnu/usr.bin/patch/patch.c,v 1.13 1998/01/21 15:15:39 ache Exp $"; /* patch - a program to apply diffs to original files * @@ -9,6 +9,9 @@ char rcsid[] = * money off of it, or pretend that you wrote it. * * $Log: patch.c,v $ + * Revision 1.13 1998/01/21 15:15:39 ache + * Update usage line with new option + * * Revision 1.12 1998/01/21 15:10:13 ache * Add -I or --index-first option to take Index: precedence over context diff, * as it was in hacked FreeBSD version @@ -179,8 +182,9 @@ static int reverse_flag_specified = FALSE; /* TRUE if -C was specified on command line. */ int check_patch = FALSE; -/* TRUE if -I was specified on command line. */ -int index_first = FALSE; +/* TRUE if -I was specified on command line */ +/* or PATCH_INDEX_FIRST env. variable is set */ +int index_first; /* Apply a set of diffs as appropriate. */ @@ -205,6 +209,8 @@ char **argv; myuid = getuid(); + index_first = getenv ("PATCH_INDEX_FIRST") != 0; + /* Cons up the names of the temporary files. */ { /* Directory for temporary files. */ |