[MacPorts] CommittersTipsAndTricks modified

MacPorts noreply at macports.org
Thu May 28 12:52:12 PDT 2009

Changed page "CommittersTipsAndTricks" by dweber at macports.org from*
Page URL: <http://trac.macports.org/wiki/CommittersTipsAndTricks>
Diff URL: <http://trac.macports.org/wiki/CommittersTipsAndTricks?action=diff&version=13>
Revision 13

Index: CommittersTipsAndTricks
--- CommittersTipsAndTricks (version: 12)
+++ CommittersTipsAndTricks (version: 13)
@@ -95,16 +95,29 @@
 and don't think about it ever again.
 If you want to test MacPorts Tcl extensions, you need to require the appropriate packages.
-[[BR]]For example:
+For access to the 'strsed', 'reinplace', and other macport commands,
+put the following into ~/bin/macports_testing.tcl:
-$ tclsh
-% source /Library/Tcl/macports1.0/macports_fastload.tcl
-% package require Pextlib
+source /Library/Tcl/macports1.0/macports_fastload.tcl
+package require macports 1.0
+set portarchivemode no
+package require port 1.0
+package require Pextlib
+set prefix /opt/local
+Then source the file in tclsh8.4 (tcl8.4 is used, as of May, 2009), i.e.:
+$ rlwrap tclsh8.4
+% source ~/bin/macports_testing.tcl
 % strsed "foo" "s/f/m/"
 == Syntax Coloring When Editing Portfiles with Text Editors ==


* The IP shown here might not mean anything if the user or the server is
behind a proxy.

MacPorts <http://www.macports.org/>
Ports system for Mac OS

This is an automated message. Someone at http://www.macports.org/ added your email
address to be notified of changes on CommittersTipsAndTricks. If it was not you, please
report to .

More information about the macports-changes mailing list