diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-10-14 14:32:18 -0700 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-10-14 14:32:18 -0700 |
commit | 47f5a9a845a29015c9b2fccd68fb17790fdd8b02 (patch) | |
tree | 5d070f07d912fd3c2d6a1157c512e19d0ecd89b2 /crawl-ref/source/util | |
parent | d54d56fd8ad458f8474f0f293b49f01eec0dd466 (diff) | |
download | crawl-ref-47f5a9a845a29015c9b2fccd68fb17790fdd8b02.tar.gz crawl-ref-47f5a9a845a29015c9b2fccd68fb17790fdd8b02.zip |
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).
Diffstat (limited to 'crawl-ref/source/util')
-rwxr-xr-x | crawl-ref/source/util/gcc-gte.pl | 10 |
1 files changed, 10 insertions, 0 deletions
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; |