diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2019-07-29 13:08:04 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-07-29 14:51:42 -0700 |
commit | e88919bfe285965bf99e3302a90187ba6f117be6 (patch) | |
tree | 4f81914d1737b2841f8c5cc4d3b79d67699a2491 | |
parent | contrib/buildsystems: ignore invalidcontinue.obj (diff) | |
download | tgif-e88919bfe285965bf99e3302a90187ba6f117be6.tar.xz |
contrib/buildsystems: ignore irrelevant files in Generators/
The Generators/ directory can contain spurious files such as editors'
backup files. Even worse, there could be .swp files which are not even
valid Perl scripts.
Let's just ignore anything but .pm files in said directory.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | contrib/buildsystems/Generators.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/buildsystems/Generators.pm b/contrib/buildsystems/Generators.pm index 408ef714b8..aa4cbaa2ad 100644 --- a/contrib/buildsystems/Generators.pm +++ b/contrib/buildsystems/Generators.pm @@ -17,7 +17,7 @@ BEGIN { $me = dirname($me); if (opendir(D,"$me/Generators")) { foreach my $gen (readdir(D)) { - next if ($gen =~ /^\.\.?$/); + next unless ($gen =~ /\.pm$/); require "${me}/Generators/$gen"; $gen =~ s,\.pm,,; push(@AVAILABLE, $gen); |