Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added config version to enable detecting stale configuration.

  • Loading branch information...
commit 84e1594d1526f1e7956f758f18efb1ffb95b8ab7 1 parent 4ba8f0b
@brixen brixen authored
Showing with 8 additions and 1 deletion.
  1. +5 −0 Rakefile
  2. +3 −1 configure
View
5 Rakefile
@@ -20,6 +20,11 @@ end
require config_rb
BUILD_CONFIG = Rubinius::BUILD_CONFIG
+unless BUILD_CONFIG[:config_version] == 1
+ STDERR.puts "Your configuration is outdated, please run ./configure first"
+ exit 1
+end
+
$dlext = Config::CONFIG["DLEXT"]
$: << "lib"
View
4 configure
@@ -34,6 +34,7 @@ class Configure
@libversion = "1.0"
@version = "#{@libversion}.0-rc2"
@release_date = "2010-01-04"
+ @config_version = 1
if File.directory? root + "/.git"
@buildrev = `git rev-list --all | head -n1`.chomp
@@ -414,7 +415,8 @@ module Rubinius
:program_name => "#{@program_name}",
:version => "#{@version}",
:libversion => "#{@libversion}",
- :release_date => "#{@release_date}"
+ :release_date => "#{@release_date}",
+ :config_version => #{@config_version}
}
end
EOC
Please sign in to comment.
Something went wrong with that request. Please try again.