Changes between Version 79 and Version 80 of PortfileRecipes


Ignore:
Timestamp:
Oct 13, 2014, 1:22:17 AM (10 years ago)
Author:
larryv (Lawrence Velázquez)
Comment:

recommend argument expansion instead of eval

Legend:

Unmodified
Added
Removed
Modified
  • PortfileRecipes

    v79 v80  
    5858
    5959== Using glob results in "Cannot stat: <list of files>" == #glob
    60 glob returns a list which is not handled by some commands (e.g. xinstall); instead, wrap the command in an eval.  Instead of
     60glob returns a list which is not handled by some commands (e.g. xinstall); instead, use argument expansion, introduced with Tcl 8.5.  Instead of
    6161{{{
    6262xinstall -m 644 [glob ${worksrcpath}/docs/*.html] ${destroot}${prefix}/share/doc/${subport}
     
    6464which fails with the "Cannot stat..." error, instead use
    6565{{{
    66 eval xinstall -m 644 [glob ${worksrcpath}/docs/*.html] ${destroot}${prefix}/share/doc/${subport}
     66xinstall -m 644 {*}[glob ${worksrcpath}/docs/*.html] ${destroot}${prefix}/share/doc/${subport}
    6767}}}
    6868