chiark / gitweb /
further refactor filter_subdir_mk, replace loop with calls, nfc
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 13 Nov 2019 15:16:23 +0000 (15:16 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 13 Nov 2019 15:16:47 +0000 (15:16 +0000)
subdirmk/generate

index 845c9be..2e35b0d 100755 (executable)
@@ -202,10 +202,8 @@ sub filter_subdir_mk ($$$$$) {
                         $var_prefix, $targets,
                         "${srcdir}/$f", \$esclit, $enoentok);
     };
-    for my $f ("${dir_prefix}Subdir.mk.in",
-              "Perdir.mk.in") {
-       $pi->($f, 0);
-    }
+    $pi->("${dir_prefix}Subdir.mk.in", 0);
+    $pi->("Perdir.mk.in",              0);
 }
 
 sub process_subtree ($$);