]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - configure
added added "./configure -svnupdate rebuild"
[user/henk/code/inspircd.git] / configure
index e7c05a210d99815ce37675d368e7192fb4307ff1..7192a8e97ed6852b3724bdc0981cf2a4f71a48d8 100755 (executable)
--- a/configure
+++ b/configure
@@ -101,6 +101,15 @@ if ($arg eq "-update") {
        }
 }
 
+if ($arg eq "-svnupdate") {
+       system("svn update");
+       system("perl configure -update");
+       if ($ARGV[1] eq "rebuild") {
+               system("make install");
+       }
+       exit;
+}
+
 if ($arg eq "-modupdate") {
        # Does the cache file exist?
        if (!getcache()) {
@@ -869,7 +878,7 @@ sub writefiles {
        chomp(my $incos = `uname -n -s -r`);
        chomp(my $version = `sh ./src/version.sh`);
         chomp(my $revision = `./src/svn-rev.sh`);
-       $version = "$version (r$revision)";
+       $version = "$version(r$revision)";
        chomp(my $revision2 = `./src/svn-rev.sh`);
        open(FILEHANDLE, ">include/inspircd_config.h");
        my $NL = $config{NICK_LENGT}+1;
@@ -1228,7 +1237,7 @@ EOCHEESE
        # End Write Entry to the MakeFile
        ###
        }
-       print FILEHANDLE "modinst:\n    echo \"*** Installing InspIRCd\"\n" . $crud;
+       print FILEHANDLE "modinst:\n    \@echo \"Installing modules...\"\n" . $crud;
 }