summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-18 18:07:17 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-18 18:07:17 +0000
commiteb42d72be6a88c33d30ddb1ab302143e19a063ee (patch)
tree9547fb8d3ded4b9c1fff28dc598ce6c65a5b3336
parent034343f08ee58495d1224801a4528c919638e712 (diff)
Add output to ./configure -update to show when it finds a directory in the modules/ dir
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6373 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index bbf74ef59..160f06bb5 100755
--- a/configure
+++ b/configure
@@ -1255,6 +1255,8 @@ EOCHEESE
$crap3 = "";
# A module made of multiple files, in a dir, e.g. src/modules/m_spanningtree/
if (opendir(MDIRHANDLE, "src/modules/$name") != 0) {
+ print "Composing Makefile rules for folder \033[1;32m$name\033[0m... ";
+ my $i = 0;
print FILEHANDLE "$name.a: ../../include/modules.h ../../include/users.h ../../include/channels.h ../../include/base.h ../../include/inspircd_config.h ../../include/inspircd.h ../../include/configreader.h $deps";
foreach $fname (sort readdir(MDIRHANDLE)) {
if ($fname =~ /\.cpp$/) {
@@ -1267,8 +1269,10 @@ EOCHEESE
$oname =~ s/\.cpp$/.o/g;
$crap2 = $crap2 . " $oname";
$crap3 = $crap3 . " $name/$fname";
+ $i++;
}
}
+ print "(\033[1;32m$i files found\033[0m)\n";
print FILEHANDLE "\n$crapola\n";
print FILEHANDLE "$name.so: $name.a ../../include/modules.h ../../include/users.h ../../include/channels.h ../../include/base.h ../../include/inspircd_config.h ../../include/inspircd.h ../../include/configreader.h$crap3\n $crap2\n";
print FILEHANDLE " ranlib $name.a$crap3\n";