[gtk-osx: 1/3] Fix example .jhbuildrc-custom to deal with floats



commit d457c0ee9a64316344361ef728311cc821c6812d
Author: Philip Chimento <philip chimento gmail com>
Date:   Sat Feb 25 15:13:10 2012 +0100

    Fix example .jhbuildrc-custom to deal with floats
    
    The new versioning where _osx_version is a float caused the old
    configuration file to choke.

 jhbuildrc-gtk-osx-custom-example |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/jhbuildrc-gtk-osx-custom-example b/jhbuildrc-gtk-osx-custom-example
index 60f4d74..480916b 100644
--- a/jhbuildrc-gtk-osx-custom-example
+++ b/jhbuildrc-gtk-osx-custom-example
@@ -109,14 +109,14 @@ elif _jhb == "FW":
 #  Set up a particular target and SDK: For default operation, set the
 # architecture and SDK for the native machine:
 _target = None;
-if _osx_version.startswith("8"):
-   _target = "10.4"
-elif _osx_version.startswith("9"):
-    _target = "10.5"
-elif _osx_version.startswith("10"):
-    _target = "10.6"
-elif _osx_version.startswith("11"):
+if _osx_version >= 7.0:
     _target = "10.7"
+elif _osx_version >= 6.0:
+    _target = "10.6"
+elif _osx_version >= 5.0:
+    _target = "10.5"
+elif _osx_version >= 4.0:
+   _target = "10.4"
 
 setup_sdk(target=_target, sdk_version="native", architectures=[_default_arch])
 #



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]