Re: writing Tcl port utilities

2015-12-16 Thread Clemens Lang
(re-sent from correct sender address for the list) Hi René, On Tue, Dec 15, 2015 at 05:40:30PM +0100, René J.V. Bertin wrote: > On Tuesday December 15 2015 10:17:58 Daniel J. Luke wrote: > > > Anything is possible, although this seems like a bad idea to me. > > I agree it could lead to lots of

Re: writing Tcl port utilities

2015-12-15 Thread René J . V . Bertin
On Tuesday December 15 2015 10:17:58 Daniel J. Luke wrote: > Anything is possible, although this seems like a bad idea to me. I agree it could lead to lots of problems when wielded in the wrong hands (so it might be better to use a dedicated utility rather than the port command itself). > Mayb

Re: writing Tcl port utilities

2015-12-15 Thread Daniel J. Luke
On Dec 15, 2015, at 7:39 AM, René J.V. Bertin wrote: > Would it be possible to implement a mechanism allowing this, so that one > could use something along the lines of > > %> port execute foo.tcl > > and, by extension, put `#!/usr/bin/env port execute` in the file's 1st line? Anything is pos

writing Tcl port utilities

2015-12-15 Thread René J . V . Bertin
Hi, As a port maintainer it happens that I need to act on data (that I normally [= in Portfiles] obtain through procedures and/or a PortGroup) outside of the regular port configure/build/etc phases. This happens most often when I need to update a series of (sub)ports, like at the moment (KF5 Fr