Tcl question ...

Peter Danecek Peter.Danecek at bo.ingv.it
Thu Sep 19 05:51:19 PDT 2013


[Sorry for the incomplete mail, I sent in unintentionally.]

Thanks for your quick replies.
Where can I find some list of these aliases?

Another one:
I also try to copy some examples into a doc directory I am trying this:
--- snip ---
post-destroot {
    file copy ${worksrcpath}/${distname}.html ${destroot}${prefix}/share/doc/${subport}
    file mkdir ${destroot}${prefix}/share/doc/${subport}/examples
    file copy ${worksrcpath}/Examples ${destroot}${prefix}/share/doc/${subport}/examples
}
--- snap ---

In this way I end up with: 
  /opt/local/share/doc/py27-BitVector/BitVector-3.3.html
  /opt/local/share/doc/py27-BitVector/examples/Examples/BitVectorDemo.py
  /opt/local/share/doc/py27-BitVector/examples/Examples/README
[…]

But I would prefer to end up with something link this
[…]   
  /opt/local/share/doc/py27-BitVector/examples/BitVectorDemo.py
  /opt/local/share/doc/py27-BitVector/examples/README
[…] 

Thanks!
~petr


On Sep 19, 2013, at 13:43 , Clemens Lang <cal at macports.org> wrote:

> On Thu, Sep 19, 2013 at 06:24:17AM -0500, Ryan Schmidt wrote:
>> To combine them you probably need eval:
>> 
>> eval delete [glob */*.pyc]
> 
> The problem here is that delete (or file delete) expect the files to be
> deleted as (multiple) parameters, but [glob */*.pyc] returns a list of
> files (which is one parameter).
> 
> To solve this, you could expand the list returned by glob to a list of
> parameters for file delete using
> delete {*}[glob */*.pyc].
> However, this is only supported on Tcl >= 8.5 and MacPorts base still
> works on platforms that only have Tcl 8.4. The alternative is using
> eval, as Ryan explained, since it will (in this case) achieve the same
> thing.
> 
> -- 
> Clemens Lang
> 
> _______________________________________________
> macports-dev mailing list
> macports-dev at lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/macports-dev

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1762 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20130919/f12e22b2/attachment.p7s>


More information about the macports-dev mailing list