Man page: Move the description of --info=progress2 to a better place.
[rsync/rsync.git] / support / cvs2includes
index 29f14dc..33981de 100755 (executable)
@@ -6,13 +6,12 @@
 #
 #      -f ': .cvsinclude'
 #
+# That ensures that all checked-in files/dirs are included in the transfer.
 # (You could alternately put ": .cvsinclude" into an .rsync-filter file and
 # use the -F option, which is easier to type.)
 #
-# That ensures that all checked-in files/dirs are included in the transfer.
-#
 # The downside is that you need to remember to re-run cvs2includes whenever
-# You add a new file to the project.
+# you add a new file to the project.
 use strict;
 
 open(FIND, 'find . -name CVS -type d |') or die $!;
@@ -32,7 +31,7 @@ while (<FIND>) {
     close ENTRIES;
     if (@includes) {
        open(FILTER, ">$filter") or die "Unable to write $filter: $!\n";
-       print FILTER '+ /', join("\n+ /", @includes), "\n";
+       print FILTER map "+ /$_\n", @includes;
        close FILTER;
        print "Updated $filter\n";
     } elsif (-f $filter) {