diff options
| author | Mike Barcroft <mike@FreeBSD.org> | 2002-02-08 02:05:32 +0000 |
|---|---|---|
| committer | Mike Barcroft <mike@FreeBSD.org> | 2002-02-08 02:05:32 +0000 |
| commit | 80db0611da9943c3974daf2e72e499ddfcfd02fe (patch) | |
| tree | b1e50f692cc451f2199bda5131fc6c6c34af8590 /gnu/usr.bin/patch/patch.c | |
| parent | 045e85410156fd8ffa4afbf63912cf2808df122c (diff) | |
Notes
Diffstat (limited to 'gnu/usr.bin/patch/patch.c')
| -rw-r--r-- | gnu/usr.bin/patch/patch.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/usr.bin/patch/patch.c b/gnu/usr.bin/patch/patch.c index 0b49410fa356c..76ddd8a28f746 100644 --- a/gnu/usr.bin/patch/patch.c +++ b/gnu/usr.bin/patch/patch.c @@ -450,7 +450,7 @@ reinitialize_almost_everything() fatal1("you may not change to a different patch file\n"); } -static char *shortopts = "-b:B:cCd:D:eEfF:IlnNo:p::r:RsStuvV:x:"; +static char *shortopts = "-b:B:cCd:D:eEfF:i:IlnNo:p::r:RsStuvV:x:"; static struct option longopts[] = { {"suffix", 1, NULL, 'b'}, @@ -540,6 +540,9 @@ get_some_switches() case 'F': maxfuzz = atoi(optarg); break; + case 'i': + filearg[1] = savestr(optarg); + break; case 'I': index_first = TRUE; break; @@ -601,7 +604,7 @@ Usage: %s [options] [origfile [patchfile]] [+ [options] [origfile]]...\n", fprintf(stderr, "\ Options:\n\ [-cCeEflnNRsStuv] [-b backup-ext] [-B backup-prefix] [-d directory]\n\ - [-D symbol] [-F max-fuzz] [-o out-file] [-p[strip-count]]\n\ + [-D symbol] [-F max-fuzz] [-i patchfile] [-o out-file] [-p[strip-count]]\n\ [-r rej-name] [-V {numbered,existing,simple}] [--check] [--context]\n\ [--prefix=backup-prefix] [--suffix=backup-ext] [--ifdef=symbol]\n\ [--directory=directory] [--ed] [--fuzz=max-fuzz] [--force] [--batch]\n\ |
