16 #include "cvsSourceDirectory.h"
26 set_program_brief(
"copy files into a CVS source hierarchy");
27 set_program_description
28 (
"This program copies one or more files into a CVS source hierarchy. "
29 "Rather than copying the named files immediately into the current "
30 "directory, it first scans the entire source hierarchy, identifying all "
31 "the already-existing files. If the named file to copy matches the "
32 "name of an already-existing file in the current directory or elsewhere "
33 "in the hierarchy, that file is overwritten.\n\n"
35 "This is primarily useful as a test program for libcvscopy.");
45 SourceFiles::iterator fi;
46 for (fi = _source_files.begin(); fi != _source_files.end(); ++fi) {
65 return copy_binary_file(source, dest);
69 int main(
int argc,
char *argv[]) {
virtual void parse_command_line(int argc, char **argv)
Dispatches on each of the options on the command line, and passes the remaining parameters to handle_...
This represents one particular directory in the hierarchy of source directory files.
The name of a file, such as a texture file or an Egg file.
A program to copy ordinary files into the cvs tree.