diff options
author | Alan McGovern <alan@xamarin.com> | 2015-03-04 19:44:22 +0300 |
---|---|---|
committer | Alan McGovern <alan@xamarin.com> | 2015-03-04 19:44:45 +0300 |
commit | 42a3be1954c5b3562c4f2f1f56929d295d314d02 (patch) | |
tree | 1c706fa927796d61b632f1c033137d49cc59c414 /dependency_checker.rb | |
parent | 153ffb3320b7ee95d45d843f39ecbee48ec373f7 (diff) |
Revert "[build] Add a dependency checker to configure"
This reverts commit 96bb9c7b1910b3a1feb248e56ed5227268f0df2c.
This needs to be properly protected so it only runs on Mac
systems.
Diffstat (limited to 'dependency_checker.rb')
-rw-r--r-- | dependency_checker.rb | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/dependency_checker.rb b/dependency_checker.rb deleted file mode 100644 index 99c64269be..0000000000 --- a/dependency_checker.rb +++ /dev/null @@ -1,30 +0,0 @@ -require 'pp' - -REQUIRED_XAMARIN_MAC_VERSION="1.12.0.4" -XAMARIN_MAC_VERSION_FILE="/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/Version" - -def compare_version(first, second) - val1 = first.split('.').map { |x| x.to_i } - val2 = second.split('.').map { |x| x.to_i } - - return val1 <=> val2 -end - -def check_product(required_version, version_file, product_name) - actual_version = File.read(version_file).strip - retval = compare_version(actual_version, required_version) - if (retval < 0) - puts "Your installed #{product_name} (#{actual_version}) is too old, please use #{required_version} or newer" - end - return retval -end - -def run() - xammac_ret = check_product(REQUIRED_XAMARIN_MAC_VERSION, XAMARIN_MAC_VERSION_FILE, "Xamarin.Mac") - if (xammac_ret < 0) - raise RuntimeError - end -end - -$stdout.sync = true -run() |