mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Regenerate modules makefile if installing or uninstalling extras modules.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11513 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
54e04fe36a
commit
a9f3a0a0d4
@ -278,11 +278,15 @@ resolve_deps(0);
|
||||
|
||||
$| = 1; # immediate print of lines without \n
|
||||
|
||||
# whether or not to invoke ./configure -modupdate after processing
|
||||
my $regen_modules_list = 0;
|
||||
|
||||
print "Processing changes for $action...\n";
|
||||
for my $mod (keys %installed) {
|
||||
next if $todo{$mod};
|
||||
print "Uninstalling $mod $installed{$mod}\n";
|
||||
unlink "src/modules/$mod.cpp";
|
||||
$regen_modules_list = 1;
|
||||
}
|
||||
|
||||
my $count = scalar keys %todo;
|
||||
@ -308,6 +312,7 @@ for my $mod (sort keys %todo) {
|
||||
} else {
|
||||
print " - HTTP $stat\n";
|
||||
}
|
||||
$regen_modules_list = 1;
|
||||
}
|
||||
|
||||
# write database of installed versions
|
||||
@ -317,4 +322,11 @@ foreach my $key (keys %mod_versions)
|
||||
print SRC "$key $mod_versions{$key}\n";
|
||||
}
|
||||
close SRC;
|
||||
print "Done!\n";
|
||||
|
||||
# regenerate makefiles if necessary
|
||||
if ($regen_modules_list)
|
||||
{
|
||||
print "Done... Re-generating makefiles\n";
|
||||
system "./configure -modupdate";
|
||||
}
|
||||
print "Finished!\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user