X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=tools%2Fchecknewlog.pl;h=c007f5a02a9b3f1a7ec356ca7c6d4b87bd8b7158;hp=14d2cf711c4ddd6c6c4d80dd779a3c05bd6a2be5;hb=50c5c20cd3cd3181fb451a1913f06a5a202bc431;hpb=7a5ed24ecc0ec2476f09478e6fe74e1f833b4b29 diff --git a/tools/checknewlog.pl b/tools/checknewlog.pl index 14d2cf711c..c007f5a02a 100755 --- a/tools/checknewlog.pl +++ b/tools/checknewlog.pl @@ -25,15 +25,24 @@ my @FILES = readdir(DIR); closedir(DIR); foreach(@FILES) { - my $Found = 0; - if ( $_ =~ /$\.log/ || $_ =~ /^\.+/ ){next;} -# print $_."\n"; - open(DATEI, "<./log/$_") || die "File not found"; - my @Lines = ; - close(DATEI); - foreach (@Lines){ - if ( $_ =~ /^\+/ ){$Found=1;} - - } - if ($Found){print "Changes in $_ check rootfile!\n";} +# print $_."\n"; + my $Found = 0; + + if ( $_ =~ /$\.log/ || $_ =~ /^\.+/ || $_=~ /-install/ || $_=~ /-tools/ || $_=~ /-config/ || $_=~ /-kmod-/|| $_=~ /coreutils/ || $_=~ /esniper/ || $_=~ /libsigc/ || $_ eq 'FILES' ){ + next; + } elsif ( $_=~ /missing_rootfile/ ){ + print "Rootfile for $_ missing!\n"; + } else { + open(DATEI, "<./log/$_") || die "File not found"; + my @Lines = ; + close(DATEI); + + foreach (@Lines){ + if ( $_ =~ /^\+/ ){$Found=1;} + } + + if ($Found){ + print "Changes in $_ check rootfile!\n"; + } + } }