diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-02-02 08:46:12 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-02-02 08:46:12 (GMT) |
commit | e2c482312c9f25c4c6531a17f9a5dd12f6f3d898 (patch) | |
tree | 5fb02400be9bcf481813f3e45c8f3238e7b909cc /library | |
parent | 58625c6ba9cf9c05e354858011bc450c6a126f04 (diff) | |
parent | 00e0788723b72c953f9e8a31fdf16cad678b994b (diff) | |
download | tcl-e2c482312c9f25c4c6531a17f9a5dd12f6f3d898.zip tcl-e2c482312c9f25c4c6531a17f9a5dd12f6f3d898.tar.gz tcl-e2c482312c9f25c4c6531a17f9a5dd12f6f3d898.tar.bz2 |
On Big Sur, distingish 11.0, 11.1 and 11.2. platform 1.0.16 -> 1.0.17
Diffstat (limited to 'library')
-rw-r--r-- | library/platform/pkgIndex.tcl | 2 | ||||
-rw-r--r-- | library/platform/platform.tcl | 10 |
2 files changed, 8 insertions, 4 deletions
diff --git a/library/platform/pkgIndex.tcl b/library/platform/pkgIndex.tcl index 401300a..7983831 100644 --- a/library/platform/pkgIndex.tcl +++ b/library/platform/pkgIndex.tcl @@ -1,3 +1,3 @@ -package ifneeded platform 1.0.16 [list source [file join $dir platform.tcl]] +package ifneeded platform 1.0.17 [list source [file join $dir platform.tcl]] package ifneeded platform::shell 1.1.4 [list source [file join $dir shell.tcl]] diff --git a/library/platform/platform.tcl b/library/platform/platform.tcl index 2c83102..e01334e 100644 --- a/library/platform/platform.tcl +++ b/library/platform/platform.tcl @@ -29,8 +29,10 @@ # are on "Windows NT" or "Windows XP" or whatever. # # Machine specific +# % amd64 -> x86_64 # % arm* -> arm # % sun4* -> sparc +# % ia32* -> ix86 # % intel -> ix86 # % i*86* -> ix86 # % Power* -> powerpc @@ -81,6 +83,7 @@ proc ::platform::generic {} { set cpu ix86 } } + ppc - "Power*" { set cpu powerpc } @@ -177,8 +180,9 @@ proc ::platform::identify {} { macosx { set major [lindex [split $tcl_platform(osVersion) .] 0] if {$major > 19} { - incr major -20 - append plat 11.$major + set minor [lindex [split $tcl_platform(osVersion) .] 1] + incr major -9 + append plat $major.[expr {$minor - 1}] } else { incr major -4 append plat 10.$major @@ -405,7 +409,7 @@ proc ::platform::patterns {id} { # ### ### ### ######### ######### ######### ## Ready -package provide platform 1.0.16 +package provide platform 1.0.17 # ### ### ### ######### ######### ######### ## Demo application |