• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

oga's tools


Commit MetaInfo

Revision8fe696805b25170f69489c5da13dc9835228894b (tree)
Zeit2014-01-15 05:47:46
Autoroga <hyperoga@gmai...>
Commiteroga

Log Message

V1.21 14/01/15 support -nr

Ändern Zusammenfassung

Diff

--- a/dsync.c
+++ b/dsync.c
@@ -23,6 +23,7 @@
2323 * V1.18 11/03/14 support -c (Same File Check in copy) for -t(test mode)
2424 * V1.19 11/12/06 change default r/w buffer size for perf and support -b
2525 * V1.20 11/12/09 support -ca compare all file for -t(test mode)
26+ * V1.21 14/01/15 support -nr
2627 *
2728 * Known Bug
2829 * 07/04/31 Long UNC(upper 256) => app error (WinNT stat() unsupport?)
@@ -53,7 +54,7 @@
5354 #include <utime.h>
5455 #endif /* _WIN32 */
5556
56-#define VER "1.20"
57+#define VER "1.21"
5758
5859 #define dprintf if (vf) printf
5960 #define dprintf2 if (vf >= 2) printf
@@ -127,11 +128,12 @@ void usage()
127128 #else
128129 /* -f, -r をデフォルトONとする */
129130 printf("dsync Ver %s\n", VER);
130- printf("usage: dsync [{-d|-m}] [-f] [-i <sec>] [-e <file_dir>] [-l <log_file>] [-s <daily_start_time(HH:MM)>] [-v] [-t [-c]] <src_dir> <dest_dir>\n");
131+ printf("usage: dsync [{-d|-m}] [-f] [-nr] [-i <sec>] [-e <file_dir>] [-l <log_file>] [-s <daily_start_time(HH:MM)>] [-v] [-t [-c[a]]] <src_dir> <dest_dir>\n");
131132 #endif
132133 printf(" -d : delete deleted file\n");
133134 printf(" -m : sync directories mutually. \n");
134135 printf(" -f : force copy read only file\n");
136+ printf(" -nr: sync no recursive\n"); /* V1.21-A */
135137 printf(" -i : ignore time difference (default:2(sec))\n");
136138 printf(" -e : ignore specific file or dir (max:%d)\n", MAX_IGNORE); /* V1.09-A */
137139 printf(" -s : daily start time\n"); /* V1.16-A */
@@ -235,6 +237,10 @@ int main(int a, char *b[])
235237 rf = 1;
236238 continue;
237239 }
240+ if (!strncmp(b[i],"-nr",3)) { /* V1.21-A */
241+ rf = 0;
242+ continue;
243+ }
238244 if (!strncmp(b[i],"-f",2)) {
239245 ff = 1;
240246 continue;