2 # This script takes an input of filenames and outputs a set of
3 # include/exclude directives that can be used by rsync to copy
4 # just the indicated files using an --exclude-from=FILE option.
13 while (m
#([^/]+/)/*#g) {
15 print "+ $path\n" unless $hash{$path}++;
24 foreach (sort keys %hash) {