]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - .inspircd.inc
Remove global namespacing, makes modules compile FASTAH. Also massive update on heade...
[user/henk/code/inspircd.git] / .inspircd.inc
index 661df8eb9fcf6820da9d2f4d254b56bed2a209fe..54737fdd78c66fd66611bf6bdb8871566ee14942 100644 (file)
 #               I HATE PERL.. kthxbye
 # ---------------------------------------------------
 
-my $basepath = "@BASE_DIR@";
-my $confpath = "@CONFIG_DIR@/";
-my $binpath = "@BINARY_DIR@";
-my $libpath = "@LIBRARY_DIR@";
-my $executable = "@EXECUTABLE@";
+my $basepath   =       "@BASE_DIR@";
+my $confpath   =       "@CONFIG_DIR@/";
+my $binpath    =       "@BINARY_DIR@";
+my $libpath    =       "@LIBRARY_DIR@";
+my $executable =       "@EXECUTABLE@";
+my $version    =       "@VERSION@";
 my @filesparsed;
 
 # Lets see what they want to do.. Set the variable (Cause i'm a lazy coder)
@@ -59,6 +60,11 @@ if ($arg eq "cron") {
        exit();
 }
 
+if ($arg eq "version") {
+       print "InspIRCd version: $version\n";
+       exit();
+}
+
 if ($arg eq "restart") {
        stop();
        unlink($pidfile) if (-e $pidfile);
@@ -67,12 +73,6 @@ if ($arg eq "restart") {
        exit();
 }
 
-if ($arg eq "version") {
-       system("sh src/version.sh");
-       system("svn info | grep Revision");
-       exit();
-}
-
 if ($arg eq "Cheese-Sandwich") {
        print "Creating Cheese Sandwich..\n";
        print "Done.\n";