Browse Source

better usage of `find()`

Steffen Jaeckel 8 years ago
parent
commit
18c00ddcd6
1 changed files with 1 additions and 3 deletions
  1. 1 3
      helper.pl

+ 1 - 3
helper.pl

@@ -135,9 +135,7 @@ MARKER
 /* commit time: $Format:%ai$ */
 MARKER
   my @all_files;
-  find({ wanted=> sub { push @all_files, $_ if $_ =~ /\.(c|h)$/ }, no_chdir=>1 }, 'src');
-  find({ wanted=> sub { push @all_files, $_ if $_ =~ /\.(c|h)$/ }, no_chdir=>1 }, 'demos');
-  find({ wanted=> sub { push @all_files, $_ if $_ =~ /\.(c|h)$/ }, no_chdir=>1 }, 'tests');
+  find({ wanted=> sub { push @all_files, $_ if $_ =~ /\.(c|h)$/ }, no_chdir=>1 }, 'demos', 'src', 'tests');
   for my $f (@all_files) {
     my $txt = read_file($f);
     if ($txt !~ /^\Q$first_comment\E/s) {