tcl 101

Ryan Schmidt ryandesign at macports.org
Wed Dec 21 23:05:32 PST 2011


On Dec 21, 2011, at 19:22, Mark Brethen wrote:

> This line in my portfile:
> 
>    set builddir    [system -W ${topdir}/scripts "./findhost.sh $(exec ${topdir}/config.guess)"]
> 
> is giving an error
> 
> :error:activate Target org.macports.activate returned: can't read "(exec /opt/local/libexec/reduce-algebra/config.guess)": no such variable
> 
> I'm trying to pass the result of config.guess to another shell script findhost. Could someone point out the error?

I would imagine the way to do this in Tcl would be:

   set builddir    [exec ${topdir}/scripts/findhost.sh [exec ${topdir}/config.guess]]




More information about the macports-dev mailing list