version 1.10, 2004/08/06 13:01:09 |
version 1.11, 2004/08/06 14:49:02 |
|
|
int cvs_trace = 0; |
int cvs_trace = 0; |
int cvs_nolog = 0; |
int cvs_nolog = 0; |
int cvs_readonly = 0; |
int cvs_readonly = 0; |
|
int cvs_nocase = 0; /* set to 1 to disable case sensitivity on filenames */ |
|
|
/* name of the command we are running */ |
/* name of the command we are running */ |
char *cvs_command; |
char *cvs_command; |
|
|
usage(void) |
usage(void) |
{ |
{ |
fprintf(stderr, |
fprintf(stderr, |
"Usage: %s [-lQqtv] [-d root] [-e editor] [-z level] " |
"Usage: %s [-lQqtvx] [-b bindir] [-d root] [-e editor] [-z level] " |
"command [options] ...\n", |
"command [options] ...\n", |
__progname); |
__progname); |
} |
} |
|
|
((envstr = getenv("EDITOR")) != NULL)) |
((envstr = getenv("EDITOR")) != NULL)) |
cvs_editor = envstr; |
cvs_editor = envstr; |
|
|
while ((ret = getopt(argc, argv, "d:e:fHlnQqrtvz:")) != -1) { |
while ((ret = getopt(argc, argv, "b:d:e:fHlnQqrtvz:")) != -1) { |
switch (ret) { |
switch (ret) { |
|
case 'b': |
|
/* |
|
* We do not care about the bin directory for RCS files |
|
* as this program has no dependencies on RCS programs, |
|
* so it is only here for backwards compatibility. |
|
*/ |
|
cvs_log(LP_NOTICE, "the -b argument is obsolete"); |
|
break; |
case 'd': |
case 'd': |
cvs_rootstr = optarg; |
cvs_rootstr = optarg; |
break; |
break; |
|
|
printf("%s\n", CVS_VERSION); |
printf("%s\n", CVS_VERSION); |
exit(0); |
exit(0); |
/* NOTREACHED */ |
/* NOTREACHED */ |
|
break; |
|
case 'x': |
|
/* |
|
* Kerberos encryption support, kept for compatibility |
|
*/ |
break; |
break; |
case 'z': |
case 'z': |
cvs_compress = (int)strtol(optarg, &ep, 10); |
cvs_compress = (int)strtol(optarg, &ep, 10); |