version 1.110, 2006/11/28 13:31:19 |
version 1.111, 2006/12/11 07:59:18 |
|
|
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_readonlyfs = 0; |
int cvs_nocase = 0; /* set to 1 to disable filename case sensitivity */ |
int cvs_nocase = 0; /* set to 1 to disable filename case sensitivity */ |
int cvs_noexec = 0; /* set to 1 to disable disk operations (-n option) */ |
int cvs_noexec = 0; /* set to 1 to disable disk operations (-n option) */ |
int cvs_error = -1; /* set to the correct error code on failure */ |
int cvs_error = -1; /* set to the correct error code on failure */ |
|
|
usage(void) |
usage(void) |
{ |
{ |
fprintf(stderr, |
fprintf(stderr, |
"Usage: %s [-flnQqrtvVw] [-d root] [-e editor] [-s var=val] " |
"Usage: %s [-flnQqRrtvVw] [-d root] [-e editor] [-s var=val] " |
"[-T tmpdir] [-z level] command [...]\n", __progname); |
"[-T tmpdir] [-z level] command [...]\n", __progname); |
} |
} |
|
|
|
|
if ((envstr = getenv("CVSREAD")) != NULL) |
if ((envstr = getenv("CVSREAD")) != NULL) |
cvs_readonly = 1; |
cvs_readonly = 1; |
|
|
|
if ((envstr = getenv("CVSREADONLYFS")) != NULL) { |
|
cvs_readonlyfs = 1; |
|
cvs_nolog = 1; |
|
} |
|
|
if ((cvs_homedir = getenv("HOME")) == NULL) { |
if ((cvs_homedir = getenv("HOME")) == NULL) { |
if ((pw = getpwuid(getuid())) == NULL) |
if ((pw = getpwuid(getuid())) == NULL) |
fatal("getpwuid failed"); |
fatal("getpwuid failed"); |
|
|
int ret; |
int ret; |
char *ep; |
char *ep; |
|
|
while ((ret = getopt(argc, argv, "b:d:e:fHlnQqrs:T:tvVwz:")) != -1) { |
while ((ret = getopt(argc, argv, "b:d:e:fHlnQqRrs:T:tvVwz:")) != -1) { |
switch (ret) { |
switch (ret) { |
case 'b': |
case 'b': |
/* |
/* |
|
|
/* |
/* |
* Be quiet. This is the default in OpenCVS. |
* Be quiet. This is the default in OpenCVS. |
*/ |
*/ |
|
break; |
|
case 'R': |
|
cvs_readonlyfs = 1; |
|
cvs_nolog = 1; |
break; |
break; |
case 'r': |
case 'r': |
cvs_readonly = 1; |
cvs_readonly = 1; |