Changes between Version 12 and Version 13 of CommittersTipsAndTricks


Ignore:
Timestamp:
May 28, 2009, 7:52:00 PM (15 years ago)
Author:
dweber@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CommittersTipsAndTricks

    v12 v13  
    9696
    9797If you want to test MacPorts Tcl extensions, you need to require the appropriate packages.
    98 [[BR]]For example:
     98For access to the 'strsed', 'reinplace', and other macport commands,
     99put the following into ~/bin/macports_testing.tcl:
     100
    99101{{{
    100 $ tclsh
    101 % source /Library/Tcl/macports1.0/macports_fastload.tcl
    102 0
    103 % package require Pextlib
     102source /Library/Tcl/macports1.0/macports_fastload.tcl
     103package require macports 1.0
     104set portarchivemode no
     105package require port 1.0
     106package require Pextlib
     107set prefix /opt/local
     108}}}
     109
     110Then 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
    1041151.0
    105116% strsed "foo" "s/f/m/"
    106117moo
     118%
    107119}}}
     120
    108121
    109122== Syntax Coloring When Editing Portfiles with Text Editors ==