version 1.75, 2023/10/25 20:05:43 |
version 1.76, 2024/03/22 19:22:23 |
|
|
/* true if -R was specified on command line. */ |
/* true if -R was specified on command line. */ |
static bool reverse_flag_specified = false; |
static bool reverse_flag_specified = false; |
|
|
|
static bool Vflag = false; |
|
|
/* buffer holding the name of the rejected patch file. */ |
/* buffer holding the name of the rejected patch file. */ |
static char rejname[PATH_MAX]; |
static char rejname[PATH_MAX]; |
|
|
|
|
my_exit(2); |
my_exit(2); |
} |
} |
|
|
if (backup_type == none) { |
if (!Vflag) { |
if ((v = getenv("PATCH_VERSION_CONTROL")) == NULL) |
if ((v = getenv("PATCH_VERSION_CONTROL")) == NULL) |
v = getenv("VERSION_CONTROL"); |
v = getenv("VERSION_CONTROL"); |
if (v != NULL || !posix) |
if (v != NULL || !posix) |
|
|
break; |
break; |
case 'V': |
case 'V': |
backup_type = get_version(optarg); |
backup_type = get_version(optarg); |
|
Vflag = true; |
break; |
break; |
#ifdef DEBUGGING |
#ifdef DEBUGGING |
case 'x': |
case 'x': |
|
|
fprintf(stderr, |
fprintf(stderr, |
"usage: patch [-bCcEeflNnRstuv] [-B backup-prefix] [-D symbol] [-d directory]\n" |
"usage: patch [-bCcEeflNnRstuv] [-B backup-prefix] [-D symbol] [-d directory]\n" |
" [-F max-fuzz] [-i patchfile] [-o out-file] [-p strip-count]\n" |
" [-F max-fuzz] [-i patchfile] [-o out-file] [-p strip-count]\n" |
" [-r rej-name] [-V t | nil | never] [-x number] [-z backup-ext]\n" |
" [-r rej-name] [-V t | nil | never | none] [-x number]\n" |
" [--posix] [origfile [patchfile]]\n" |
" [-z backup-ext] [--posix] [origfile [patchfile]]\n" |
" patch <patchfile\n"); |
" patch <patchfile\n"); |
my_exit(2); |
my_exit(2); |
} |
} |