version 1.5, 2004/08/06 14:09:24 |
version 1.6, 2004/08/12 20:09:58 |
|
|
#include "cvs.h" |
#include "cvs.h" |
#include "rcs.h" |
#include "rcs.h" |
#include "log.h" |
#include "log.h" |
|
#include "proto.h" |
|
|
|
|
#define CFT_FILE 1 |
#define CFT_FILE 1 |
|
|
return (EX_USAGE); |
return (EX_USAGE); |
|
|
root = cvsroot_get("."); |
root = cvsroot_get("."); |
|
if (root->cr_method != CVS_METHOD_LOCAL) { |
|
if (cvs_connect(root) < 0) |
|
return (EX_DATAERR); |
|
|
|
if (cvs_sendreq(root, CVS_REQ_INIT, root->cr_dir) < 0) |
|
return (EX_DATAERR); |
|
|
|
cvs_disconnect(root); |
|
return (0); |
|
} |
|
|
for (i = 0; i < sizeof(cvsroot_files)/sizeof(cvsroot_files[i]); i++) { |
for (i = 0; i < sizeof(cvsroot_files)/sizeof(cvsroot_files[i]); i++) { |
snprintf(path, sizeof(path), "%s/%s", root->cr_dir, |
snprintf(path, sizeof(path), "%s/%s", root->cr_dir, |