11 while (defined(my $arg = <>)) {
14 my $rel = File::Spec->file_name_is_absolute($arg)
15 ? File::Spec->abs2rel($arg, $ENV{HOME})
17 my $abs = File::Spec->rel2abs($rel, $ENV{HOME});
18 my $saved = rel2saved($rel);
21 print "SKIP: $rel is not in the repository.\n";
25 if (compare($abs, $saved) == 0) {
26 print "SKIP: $rel is identical to the copy in the repository.\n";
29 print "SKIP: $rel is different from the copy in the repository.\n";
33 print "Copying $saved to $abs...\n";
34 copy($saved, $abs) or die $!;