4 * $DragonFly: src/bin/cpdup/misc.c,v 1.2 2003/12/01 06:07:16 dillon Exp $
10 logstd(const char *ctl, ...)
20 logerr(const char *ctl, ...)
25 vfprintf(stderr, ctl, va);
30 mprintf(const char *ctl, ...)
36 if (vasprintf(&ptr, ctl, va) < 0)
37 fatal("malloc failed");
44 fatal(const char *ctl, ...)
49 puts("cpdup [<options>] src [dest]");
50 puts(" -v[vv] verbose level (-vv is typical)\n"
51 " -I display performance summary\n"
52 " -f force update even if files look the same\n"
53 " -i0 do NOT confirm when removing something\n"
54 " -s0 disable safeties - allow files to overwrite directories\n"
55 " -q quiet operation\n"
56 " -o do not remove any files, just overwrite/add\n"
57 " -m maintain/generate MD5 checkfile on source,\n"
58 " and compare with (optional) destination,\n"
59 " copying if the compare fails\n"
60 " -M file -m+specify MD5 checkfile, else .MD5_CHECKSUMS\n"
61 " copy if md5 check fails\n"
62 " -x use .cpignore as exclusion file\n"
63 " -X file specify exclusion file\n"
64 " Version 1.06 by Matt Dillon and Dima Ruban\n"