changed generate_def to use the uncommited, raw file list

This commit is contained in:
czurnieden 2019-11-27 20:55:22 +01:00
parent 220a4deb31
commit cecfd1f66c

View File

@ -422,9 +422,8 @@ EOS
} }
sub generate_def { sub generate_def {
my @files = split /\n/, `git ls-files`; my @files = glob '*mp_*.c';
@files = grep(/\.c/, @files); @files = map { my $x = $_; $x =~ s/\.c$//g; $x; } @files;
@files = map { my $x = $_; $x =~ s/^bn_|\.c$//g; $x; } @files;
@files = grep(!/mp_cutoffs/, @files); @files = grep(!/mp_cutoffs/, @files);
my $files = join("\n ", sort(grep(/^mp_/, @files))); my $files = join("\n ", sort(grep(/^mp_/, @files)));