summaryrefslogtreecommitdiff
path: root/make/configure.pm
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-08-04 21:49:35 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-08-04 21:49:35 +0000
commit818a53e13ab7d86f84231aa30bac2956a93ea292 (patch)
tree5f579f14697beb23b52d4a27b162c69bcc71b869 /make/configure.pm
parenteb0fb524184baa44aef8eba9dfb07cdeaf279343 (diff)
Track installed module versions, so we can do upgrades properly.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11489 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'make/configure.pm')
-rw-r--r--make/configure.pm17
1 files changed, 1 insertions, 16 deletions
diff --git a/make/configure.pm b/make/configure.pm
index 05db6004e..ae88d90ce 100644
--- a/make/configure.pm
+++ b/make/configure.pm
@@ -20,7 +20,7 @@ use warnings FATAL => qw(all);
use Exporter 'import';
use POSIX;
use make::utilities;
-our @EXPORT = qw(promptnumeric dumphash is_dir getmodules getrevision getcompilerflags getlinkerflags getdependencies getmodversion nopedantic resolve_directory yesno showhelp promptstring_s);
+our @EXPORT = qw(promptnumeric dumphash is_dir getmodules getrevision getcompilerflags getlinkerflags getdependencies nopedantic resolve_directory yesno showhelp promptstring_s);
my $no_svn = 0;
@@ -122,21 +122,6 @@ sub getdependencies {
return "";
}
-sub getmodversion {
- my ($file) = @_;
- open(FLAGS, $file) or return "";
- while (<FLAGS>) {
- if (m#(?:^/* \$|")ModVersion: (\S+)(?: \*\/$|")#) {
- my $x = translate_functions($1, $file);
- next if ($x eq "");
- close(FLAGS);
- return $x;
- }
- }
- close(FLAGS);
- return "";
-}
-
sub nopedantic {
my ($file) = @_;
open(FLAGS, $file) or return "";