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