my $configurechanged = 0; # Needs ./configure -update
my $coredirchanged = 0; # Needs ./configure -update
my $moduledirchanged = 0; # Needs ./configure -modupdate
+ my $rootincchanged = 0;
my @conflicted = ();
while (defined(my $line = <$fd>))
{
{
$configurechanged = 1;
}
- if ($file =~ m#^src/modules#)
+ elsif ($file =~ m#^src/modules#)
{
$moduledirchanged = 1;
}
{
$coredirchanged = 1;
}
+ elsif ($file =~ m/^\..*\.inc$/)
+ {
+ $rootincchanged = 1;
+ }
}
elsif ($action eq "U" || $action eq "G")
{
{
$configurechanged = 1;
}
+ elsif ($file =~ m/^\..*\.inc$/)
+ {
+ $rootincchanged = 1;
+ }
}
elsif ($action eq "A" || $action eq "D")
{
{
system("perl configure -update");
}
- elsif ($moduledirchanged)
+ elsif ($moduledirchanged || $rootincchanged)
{
system("perl configure -modupdate");
}