From 47f5a9a845a29015c9b2fccd68fb17790fdd8b02 Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Wed, 14 Oct 2009 14:32:18 -0700 Subject: Fix it returning "No" if any of the parts of gcc's version was less than the target version (e.g., "4.3.0 >= 4.2.5" was returning "No" because 0 < 5). --- crawl-ref/source/util/gcc-gte.pl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/crawl-ref/source/util/gcc-gte.pl b/crawl-ref/source/util/gcc-gte.pl index cd74544d7f..686348c5f8 100755 --- a/crawl-ref/source/util/gcc-gte.pl +++ b/crawl-ref/source/util/gcc-gte.pl @@ -40,11 +40,21 @@ my $min_major = $1; my $min_minor = $2; my $min_patch = $3; +if ($local_major > $min_major) { + print "Yes\n"; + exit 0; +} + if ($local_major < $min_major) { print "No\n"; exit 0; } +if ($local_minor > $min_minor) { + print "Yes\n"; + exit 0; +} + if ($local_minor < $min_minor) { print "No\n"; exit 0; -- cgit v1.2.3-54-g00ecf