Adding the manpage writeup from Matt.
[rsync/rsync-patches.git] / downdate.diff
index 6a9698e..bbc89a2 100644 (file)
@@ -1,17 +1,23 @@
 A patch from Stefan Müller to add the --downdate option, which works
 in the opposite manner as --update.
 
+To use this patch, run these commands for a successful build:
+
+    patch -p1 <patches/downdate.diff
+    ./configure                                 (optional if already run)
+    make
+
 --- old/generator.c
 +++ new/generator.c
 @@ -53,6 +53,7 @@ extern int ignore_errors;
- extern int remove_sent_files;
+ extern int remove_source_files;
  extern int delay_updates;
  extern int update_only;
 +extern int downdate_only;
  extern int ignore_existing;
  extern int ignore_non_existing;
  extern int inplace;
-@@ -1133,6 +1134,13 @@ static void recv_generator(char *fname, 
+@@ -1144,6 +1145,13 @@ static void recv_generator(char *fname, 
                return;
        }
  
@@ -25,7 +31,7 @@ in the opposite manner as --update.
        fnamecmp = fname;
        fnamecmp_type = FNAMECMP_FNAME;
  
-@@ -1430,7 +1438,7 @@ void generate_files(int f_out, struct fi
+@@ -1452,7 +1460,7 @@ void generate_files(int f_out, struct fi
        phase++;
        csum_length = SUM_LENGTH;
        max_size = min_size = ignore_existing = ignore_non_existing = 0;
@@ -44,7 +50,7 @@ in the opposite manner as --update.
  int cvs_exclude = 0;
  int dry_run = 0;
  int do_xfers = 1;
-@@ -291,6 +292,7 @@ void usage(enum logcode F)
+@@ -293,6 +294,7 @@ void usage(enum logcode F)
    rprintf(F,"     --backup-dir=DIR        make backups into hierarchy based in DIR\n");
    rprintf(F,"     --suffix=SUFFIX         set backup suffix (default %s w/o --backup-dir)\n",BACKUP_SUFFIX);
    rprintf(F," -u, --update                skip files that are newer on the receiver\n");
@@ -52,7 +58,7 @@ in the opposite manner as --update.
    rprintf(F,"     --inplace               update destination files in-place (SEE MAN PAGE)\n");
    rprintf(F,"     --append                append data onto shorter files\n");
    rprintf(F," -d, --dirs                  transfer directories without recursing\n");
-@@ -461,6 +463,7 @@ static struct poptOption long_options[] 
+@@ -465,6 +467,7 @@ static struct poptOption long_options[] 
    {"size-only",        0,  POPT_ARG_NONE,   &size_only, 0, 0, 0 },
    {"one-file-system", 'x', POPT_ARG_NONE,   0, 'x', 0, 0 },
    {"update",          'u', POPT_ARG_NONE,   &update_only, 0, 0, 0 },