Looking for a cure for weird scope/memory of variables

Gustaf Neumann neumann at wu.ac.at
Tue Jul 9 10:32:03 PDT 2013


Am 09.07.13 19:25, schrieb Clemens Lang:
> with all the ugly quoting that will be caused by this. 

this is nicer to read:

set foo.versions {
     2.0 x
     3.0 y
     4.1 z
}

foreach {foo.version foo.string} ${foo.versions} {
     subport foo-${foo.version} [subst {
         pre-fetch {
             system "echo ${foo.version}"
         }
         fetch {}
         extract {}
         use_configure no
         build {}
         destroot {}
     }]
}


-g



More information about the macports-dev mailing list