From 1ed9b7e024aab2c6cfb929be4642375e4e8458b3 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 8 Feb 2006 10:37:58 +0000 Subject: Fixed SOME of craigs horrendous lack of any indenting whatsoever git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3135 e03df62e-2008-0410-955e-edbf42e46eb7 --- configure | 222 +++++++++++++++++++++++++++++++------------------------------- 1 file changed, 111 insertions(+), 111 deletions(-) diff --git a/configure b/configure index e1e8156b8..53739a88e 100755 --- a/configure +++ b/configure @@ -1000,29 +1000,29 @@ EOF } sub getcompilerflags { - my ($file) = @_; - open(FLAGS, $file); - while () { - if ($_ =~ /^\/\* \$CompileFlags: (.+) \*\/$/) { - close(FLAGS); - return $1; - } - } - close(FLAGS); - return undef; + my ($file) = @_; + open(FLAGS, $file); + while () { + if ($_ =~ /^\/\* \$CompileFlags: (.+) \*\/$/) { + close(FLAGS); + return $1; + } + } + close(FLAGS); + return undef; } sub getlinkerflags { - my ($file) = @_; - open(FLAGS, $file); - while () { - if ($_ =~ /^\/\* \$LinkerFlags: (.+) \*\/$/) { - close(FLAGS); - return $1; - } - } - close(FLAGS); - return undef; + my ($file) = @_; + open(FLAGS, $file); + while () { + if ($_ =~ /^\/\* \$LinkerFlags: (.+) \*\/$/) { + close(FLAGS); + return $1; + } + } + close(FLAGS); + return undef; } sub show_splash { @@ -1056,14 +1056,14 @@ sub yesno { } sub write_static_modules_makefile { - # Modules Makefile.. - print "Writing \033[1;32msrc/modules/Makefile\033[0m\n"; - open(FILEHANDLE, ">src/modules/Makefile"); + # Modules Makefile.. + print "Writing \033[1;32msrc/modules/Makefile\033[0m\n"; + open(FILEHANDLE, ">src/modules/Makefile"); -### -# Module Makefile Header -### - print FILEHANDLE < # Many Thanks to Andrew Church @@ -1075,94 +1075,94 @@ sub write_static_modules_makefile { all: \$(MODULES) EOF -### -# End Module Makefile Header -### + ### + # End Module Makefile Header + ### -# Create a Modules List.. -my $modules = ""; -my $cmflags = ""; -my $liflags = ""; + # Create a Modules List.. + my $modules = ""; + my $cmflags = ""; + my $liflags = ""; -open(MODLIST,">include/modlist.h"); + open(MODLIST,">include/modlist.h"); -### -# Include File Header -### -print MODLIST <src/modules/m_".$i."_static.cpp") or die("Could not create m_".$i."_static.cpp"); - while (chomp($a = )) { - $a =~ s/init_module/$i\_init/g; - $a =~ s/Srv/$i\Srv/g; - print MUNGED "$a\n"; - } - close(MODULE); - close(MUNGED); - print MODLIST <src/modules/m_".$i."_static.cpp") or die("Could not create m_".$i."_static.cpp"); + while (chomp($a = )) { + $a =~ s/init_module/$i\_init/g; + $a =~ s/Srv/$i\Srv/g; + print MUNGED "$a\n"; + } + close(MODULE); + close(MUNGED); + print MODLIST <src/modules/Makefile"); - my $extra = ""; + # Modules Makefile.. + print "Writing \033[1;32msrc/modules/Makefile\033[0m\n"; + open(FILEHANDLE, ">src/modules/Makefile"); + my $extra = ""; - if ($config{OSNAME} =~ /CYGWIN/) { - $extra = "../inspircd.dll.a"; - } + if ($config{OSNAME} =~ /CYGWIN/) { + $extra = "../inspircd.dll.a"; + } ### # Module Makefile Header ### - print FILEHANDLE < # Many Thanks to Andrew Church @@ -1174,16 +1174,16 @@ sub write_dynamic_modules_makefile { all: \$(MODULES) EOF -### -# End Module Makefile Header -### + ### + # End Module Makefile Header + ### -# Create a Modules List.. -my $modules = ""; -my $cmflags = ""; -my $liflags = ""; + # Create a Modules List.. + my $modules = ""; + my $cmflags = ""; + my $liflags = ""; -foreach $i (@modlist) { + foreach $i (@modlist) { ### # Write Entry to the MakeFile ### @@ -1200,7 +1200,7 @@ EOCHEESE ### # End Write Entry to the MakeFile ### -} + } } @@ -1234,17 +1234,17 @@ CC = im a cheezeball CXXFLAGS = -I../include \${FLAGS} EOM -### -# This next section is for cygwin dynamic module builds. -# Basically, what we do, is build the inspircd core as a library -# then the main executable uses that. the library is capable of -# loading / unloading the modules dynamically :) -# Massive thanks to the guys on #cygwin @ irc.freenode.net for helping -# make this work :) -### + ### + # This next section is for cygwin dynamic module builds. + # Basically, what we do, is build the inspircd core as a library + # then the main executable uses that. the library is capable of + # loading / unloading the modules dynamically :) + # Massive thanks to the guys on #cygwin @ irc.freenode.net for helping + # make this work :) + ### -if ($config{OSNAME} =~ /CYGWIN/) { - print FH <