diff options
author | Sir Pogsalot <sir.pogsalot@gmail.com> | 2012-04-09 06:27:25 -0700 |
---|---|---|
committer | Sir Pogsalot <sir.pogsalot@gmail.com> | 2012-04-09 06:27:25 -0700 |
commit | 0d79771397066db0e4877362053b719406c9ee01 (patch) | |
tree | 9a05148dab80592d6c366ce5a41e2b002362adae /make | |
parent | 0d35e68f5684b891dc75a9e39df0ee3ec3f36e58 (diff) | |
parent | 451e8befa780b59ed12252db1be9bfa663c7e8c1 (diff) |
Merge pull request #32 from SaberUK/remove-svn-references
Remove outdated references to SVN.
Diffstat (limited to 'make')
-rw-r--r-- | make/configure.pm | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/make/configure.pm b/make/configure.pm index dbba7a143..526f39d29 100644 --- a/make/configure.pm +++ b/make/configure.pm @@ -22,7 +22,7 @@ use POSIX; use make::utilities; our @EXPORT = qw(promptnumeric dumphash is_dir getmodules getrevision getcompilerflags getlinkerflags getdependencies nopedantic resolve_directory yesno showhelp promptstring_s); -my $no_svn = 0; +my $no_git = 0; sub yesno { my ($flag,$prompt) = @_; @@ -52,29 +52,18 @@ sub resolve_directory } sub getrevision { - if ($no_svn) + if ($no_git) { return "0"; } - my $data = `svn info 2>/dev/null`; + my $data = `git describe --tags 2>/dev/null`; if ($data eq "") { - $data = `git describe --tags 2>/dev/null`; - if ($data eq "") - { - $no_svn = 1; - return '0'; - } - chomp $data; # remove \n - return $data; - } - $data =~ /Revision: (\d+)/; - my $rev = $1; - if (!defined($rev)) - { - $rev = "0"; + $no_git = 1; + return '0'; } - return $rev; + chomp $data; # remove \n + return $data; } sub getcompilerflags { @@ -262,9 +251,6 @@ InspIRCd 1.0.x, are also allowed. YOU KNOW WHAT YOU ARE DOING! --update Update makefiles and dependencies --modupdate Detect new modules and write makefiles - --svnupdate {--rebuild} Update working copy via subversion - {and optionally rebuild if --rebuild - is also specified} --clean Remove .config.cache file and go interactive --enable-gnutls Enable GnuTLS module [no] --enable-openssl Enable OpenSSL module [no] |