version 1.51, 2006/03/24 13:34:27 |
version 1.52, 2006/04/14 02:45:35 |
|
|
co_mods = argv; |
co_mods = argv; |
co_nmod = argc; |
co_nmod = argc; |
|
|
if ((statmod == 0) && (argc == 0)) |
if (statmod == 0 && argc == 0) |
fatal("must specify at least one module or directory"); |
fatal("must specify at least one module or directory"); |
|
|
if (statmod && (argc > 0)) |
if (statmod && (argc > 0)) |
|
|
|
|
/* `export' command exceptions */ |
/* `export' command exceptions */ |
if (cvs_cmdop == CVS_OP_EXPORT) { |
if (cvs_cmdop == CVS_OP_EXPORT) { |
if ((tag == NULL) && (date == NULL)) |
if (tag == NULL && date == NULL) |
fatal("must specify a tag or date"); |
fatal("must specify a tag or date"); |
|
|
/* we don't want numerical revisions here */ |
/* we don't want numerical revisions here */ |
if ((tag != NULL) && (rcsnum_parse(tag) != NULL)) |
if (tag != NULL && rcsnum_parse(tag) != NULL) |
fatal("tag `%s' must be a symbolic tag", tag); |
fatal("tag `%s' must be a symbolic tag", tag); |
} |
} |
|
|
|
|
if ((sp = strchr(co_mods[i], '/')) != NULL) |
if ((sp = strchr(co_mods[i], '/')) != NULL) |
*sp = '\0'; |
*sp = '\0'; |
|
|
if ((mkdir(co_mods[i], 0755) == -1) && (errno != EEXIST)) |
if (mkdir(co_mods[i], 0755) == -1 && errno != EEXIST) |
fatal("cvs_checkout_pre_exec: mkdir `%s': %s", |
fatal("cvs_checkout_pre_exec: mkdir `%s': %s", |
co_mods[i], strerror(errno)); |
co_mods[i], strerror(errno)); |
|
|
|
|
static int inattic = 0; |
static int inattic = 0; |
|
|
/* we don't want these */ |
/* we don't want these */ |
if ((cf->cf_type == DT_DIR) && !strcmp(cf->cf_name, "Attic")) { |
if (cf->cf_type == DT_DIR && !strcmp(cf->cf_name, "Attic")) { |
inattic = 1; |
inattic = 1; |
return (CVS_EX_OK); |
return (CVS_EX_OK); |
} |
} |