1 #!/usr/bin/perl -- -*- mode: cperl -*-
5 rrr-dirtyupdate - add a file with an old timestamp to the dataset
9 rrr-dirtyupdate [options] file epoch
17 my @opt = <<'=back' =~ /B<--(\S+)>/g;
21 (TBD) Do not really run the command, ...
25 Prints a brief message and exists.
43 use File
::Rsync
::Mirror
::Recent
;
45 use Pod
::Usage
qw(pod2usage);
60 # my($file,$epoch) = @ARGV; # XXX
62 if ($Opt{'dry-run'}) {
63 die "FIXME: not yet implemented";
66 my $rf = File
::Rsync
::Mirror
::Recentfile
->new_from_file
68 "/home/ftp/pub/PAUSE/authors/RECENT-1h.yaml",
71 die "ALERT: Could not create an rf: $@";
73 warn "prove of concept for one file only. Last chance to hit ^C now to interrupt. sleeping 5";
75 $rf->update("/home/ftp/pub/PAUSE/authors/id/S/SA/SAMUELL/Ctype-0.02.readme","new","0.123456789");
85 # cperl-indent-level: 4