# HG changeset patch # User Heiko Schlittermann # Date 1293620521 -3600 # Node ID 2c45d68844bfc1489aa3aaf3026a10713e72bd6f # Parent 35a116258422c2fba996f1658436c090396cd4ee minor changes diff -r 35a116258422 -r 2c45d68844bf Makefile --- a/Makefile Wed Dec 29 00:08:03 2010 +0100 +++ b/Makefile Wed Dec 29 12:02:01 2010 +0100 @@ -9,8 +9,9 @@ all: $(ALL) clean: -distclean: - rm -f $(CLEANFILES) + +distclean: clean + -rm -f $(CLEANFILES) %: %.pl diff -r 35a116258422 -r 2c45d68844bf update-serial.pl --- a/update-serial.pl Wed Dec 29 00:08:03 2010 +0100 +++ b/update-serial.pl Wed Dec 29 12:02:01 2010 +0100 @@ -8,9 +8,9 @@ use File::Basename; use Pod::Usage; use Getopt::Long; -use Smart::Comments; use File::Temp; use POSIX qw(strftime); +use if $ENV{DEBUG} => "Smart::Comments"; sub uniq(@); sub read_conf(@); diff -r 35a116258422 -r 2c45d68844bf zone-ls.pl --- a/zone-ls.pl Wed Dec 29 00:08:03 2010 +0100 +++ b/zone-ls.pl Wed Dec 29 12:02:01 2010 +0100 @@ -8,6 +8,7 @@ use FindBin; use Time::Local; use Getopt::Long; +use if $ENV{DEBUG} => "Smart::Comments"; my %config; my $opt_expiry = undef; @@ -88,7 +89,7 @@ open(my ($fh), $_ = "<$dir/$zone.signed") or die "Can't open $_: $!\n"; while (<$fh>) { - next if not /RSIG.*SOA.*\s + next if not /RSIG\s+SOA\s.*\s (?\d\d\d\d) (?\d\d) (?\d\d) @@ -100,13 +101,14 @@ } } + { # output my $sort_by = $opt_expiry ? sub { ($info{$a}{expiry} // 2**64) <=> ($info{$b}{expiry} // 2**64) } : sub { $a cmp $b }; - + my $format_h = "%-35s %-8s %1s/%1s %3s %7s\n"; my $format_l = "%-35s %-8s %1d/%1d %5d %19s\n"; @@ -119,6 +121,7 @@ } } + __END__ =head1 NAME