How identify and remove leftover files on buildbots?

Lawrence Velázquez larryv at macports.org
Sun Nov 2 14:32:42 PST 2014


On Nov 2, 2014, at 2:35 PM, Marko Käning <MK-MacPorts at techno.ms> wrote:

> +pre-activate {
> +    ui_info "pre-activate::start"
> +    foreach filepath {[glob ${prefix}${frameworks_dir}/R.framework/*]} {

You've quoted the glob command with braces, so it's still being treated as a list, instead of being evaluated. Remove the braces.

% foreach f {[glob /opt/local/bin/gcc-*]} {puts $f}
[glob
/opt/local/bin/gcc-*]

% foreach f [glob /opt/local/bin/gcc-*] {puts $f}
/opt/local/bin/gcc-ar-mp-4.7
/opt/local/bin/gcc-ar-mp-4.8
/opt/local/bin/gcc-ar-mp-4.9
/opt/local/bin/gcc-mp-4.6
/opt/local/bin/gcc-mp-4.7
/opt/local/bin/gcc-mp-4.8
/opt/local/bin/gcc-mp-4.9
/opt/local/bin/gcc-nm-mp-4.7
/opt/local/bin/gcc-nm-mp-4.8
/opt/local/bin/gcc-nm-mp-4.9
/opt/local/bin/gcc-ranlib-mp-4.7
/opt/local/bin/gcc-ranlib-mp-4.8
/opt/local/bin/gcc-ranlib-mp-4.9
%

vq


More information about the macports-dev mailing list