Adding .git. Using a regex.
If we make it a bit smarter, we do not need most dirs listed.
Test plan:
Run the test again
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
my @missing;
for my $d ( sort @dirs ) {
chomp $d;
- next if $d eq './Koha';
- next if $d eq './C4';
- next if $d eq './koha-tmpl';
- next if $d eq './etc';
- next if $d eq './debian';
- next if $makefile =~ m|'$d'|gxms;
+ next if $d =~ /\.\/(debian|\.git)$/;
+ next if $makefile =~ m{'$d('|\/)}xms;
push @missing, $d;
}