stop abusing rrr-dirtyupdate for temporary jobs
[rersyncrecent.git] / bin / rrr-dirtyupdate
blob05660b5881c0e6433e50d75548b8eaf264fc574b
1 #!/usr/bin/perl -- -*- mode: cperl -*-
3 =head1 NAME
5 rrr-dirtyupdate - add a file with an old timestamp to the dataset
7 =head1 SYNOPSIS
9 rrr-dirtyupdate [options] file epoch
11 =head1 OPTIONS
13 =over 8
15 =cut
17 my @opt = <<'=back' =~ /B<--(\S+)>/g;
19 =item B<--dry-run!>
21 (TBD) Do not really run the command, ...
23 =item B<--help|h>
25 Prints a brief message and exists.
27 =item B<--verbose|v+>
29 More feedback.
31 =back
33 =head1 DESCRIPTION
35 When you later discover missing files...
37 =head1 BUGS
39 Not yet written.
41 =cut
44 use strict;
45 use warnings;
47 use File::Find qw(find);
48 use File::Rsync::Mirror::Recent;
49 use Getopt::Long;
50 use Pod::Usage qw(pod2usage);
52 our %Opt;
53 GetOptions(\%Opt,
54 @opt,
55 ) or pod2usage(1);
57 if ($Opt{help}) {
58 pod2usage(0);
61 unless (@ARGV) {
62 pod2usage(1);
65 # my($file,$epoch) = @ARGV; # XXX
67 if ($Opt{'dry-run'}) {
68 die "FIXME: not yet implemented";
71 die "FIXME";
73 my $recent = File::Rsync::Mirror::Recent->new
75 local => "/home/ftp/pub/PAUSE/authors/RECENT-1h.yaml",
80 __END__
83 # Local Variables:
84 # mode: cperl
85 # coding: utf-8
86 # cperl-indent-level: 4
87 # End: