Changes between Version 12 and Version 13 of CommittersTipsAndTricks
- Timestamp:
- May 28, 2009, 7:52:00 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CommittersTipsAndTricks
v12 v13 96 96 97 97 If you want to test MacPorts Tcl extensions, you need to require the appropriate packages. 98 [[BR]]For example: 98 For access to the 'strsed', 'reinplace', and other macport commands, 99 put the following into ~/bin/macports_testing.tcl: 100 99 101 {{{ 100 $ tclsh 101 % source /Library/Tcl/macports1.0/macports_fastload.tcl 102 0 103 % package require Pextlib 102 source /Library/Tcl/macports1.0/macports_fastload.tcl 103 package require macports 1.0 104 set portarchivemode no 105 package require port 1.0 106 package require Pextlib 107 set prefix /opt/local 108 }}} 109 110 Then source the file in tclsh8.4 (tcl8.4 is used, as of May, 2009), i.e.: 111 112 {{{ 113 $ rlwrap tclsh8.4 114 % source ~/bin/macports_testing.tcl 104 115 1.0 105 116 % strsed "foo" "s/f/m/" 106 117 moo 118 % 107 119 }}} 120 108 121 109 122 == Syntax Coloring When Editing Portfiles with Text Editors ==