Delete deriv directory in derivgen.pl before remaking derived configs

This commit is contained in:
Jordan Carlin 2024-05-23 14:01:13 -07:00
parent 6a2192db6e
commit a1e22adc1e
No known key found for this signature in database

View File

@ -70,10 +70,10 @@ foreach my $line (<$fh>) {
}
&terminateDeriv();
close($fh);
system("rm -rf $ENV{WALLY}/config/deriv");
#foreach my $key (keys %derivs) {
foreach my $key (@derivnames) {
my $dir = "$ENV{WALLY}/config/deriv/$key";
system("rm -rf $dir");
system("mkdir -p $dir");
my $configunmod = "$dir/config_unmod.vh";
my $config = "$dir/config.vh";