[MacPorts] TclVersionInfo modified

MacPorts noreply at macports.org
Wed Sep 25 07:40:28 PDT 2013


Page "TclVersionInfo" was changed by cal at macports.org
Diff URL: <https://trac.macports.org/wiki/TclVersionInfo?action=diff&version=5>
Revision 5
Comment: add script to auto-generate table rows, turn table (since adding new rows is easier than adding new columns)
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: TclVersionInfo
=========================================================================
--- TclVersionInfo (version: 4)
+++ TclVersionInfo (version: 5)
@@ -13,7 +13,18 @@
 
 == Versions ==
 
-||= Tcl/Mac OS X     =||=  10.8  =||=  10.7  =||=  10.6  =||=  10.5  =||=  10.4  =||
-||=/usr/bin/tclsh    =||     8.5.9||             8.5.9||          8.5.7||           8.4.7 ||          ||
-||=/usr/bin/tclsh8.4 =||    8.4.19||          8.4.19||          8.4.19||         8.4.7||          ||
-||=/usr/bin/tclsh8.5 =||     8.5.9||           8.5.9||          8.5.7||            <na>||          ||
+||= Mac OS X/Tcl =||= `/usr/bin/tclsh`   =||= `/usr/bin/tclsh8.4` =||= `/usr/bin/tclsh8.5` =||
+||= 10.8         =||`8.5.9              ` ||`8.4.19             `  ||`8.5.9              `  ||
+||= 10.7         =||`8.5.9              ` ||`8.4.19             `  ||`8.5.9              `  ||
+||= 10.6         =||`8.5.7              ` ||`8.4.19             `  ||`8.5.7              `  ||
+||= 10.5         =||`8.5.7              ` ||`8.4.19             `  ||`8.5.7              `  ||
+||= 10.4         =||`8.4.7              ` ||`8.4.7              `  ||`none               `  ||
+
+You can generate the format required by this table using
+{{{
+printf '||= %-12s =||`%-19s` ||`%-19s`  ||`%-19s`  ||\n' \
+  $(sw_vers -productVersion | /usr/bin/grep -Eo '[0-9]+\.[0-9]+') \
+  $(TCLSH=/usr/bin/tclsh; (test -e $TCLSH && echo 'puts [info patchlevel]' | $TCLSH) || echo "none") \
+  $(TCLSH=/usr/bin/tclsh8.4; (test -e $TCLSH && echo 'puts [info patchlevel]' | $TCLSH) || echo "none") \
+  $(TCLSH=/usr/bin/tclsh8.5; (test -e $TCLSH && echo 'puts [info patchlevel]' | $TCLSH) || echo "none")
+}}}
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/TclVersionInfo>
MacPorts <http://www.macports.org/>
Ports system for OS X

This is an automated message. Someone added your email address to be
notified of changes on 'TclVersionInfo' page.
If it was not you, please report to .


More information about the macports-changes mailing list