[83620] trunk/dports/science/openmpi/Portfile

Ryan Schmidt ryandesign at macports.org
Wed Sep 7 15:14:04 PDT 2011


On Sep 7, 2011, at 17:14, mww at macports.org wrote:

> Revision: 83620
>          http://trac.macports.org/changeset/83620
> Author:   mww at macports.org
> Date:     2011-09-07 15:13:56 -0700 (Wed, 07 Sep 2011)
> Log Message:
> -----------
> use 'system -W' instead
> 
> Modified Paths:
> --------------
>    trunk/dports/science/openmpi/Portfile
> 
> Modified: trunk/dports/science/openmpi/Portfile
> ===================================================================
> --- trunk/dports/science/openmpi/Portfile	2011-09-07 21:39:23 UTC (rev 83619)
> +++ trunk/dports/science/openmpi/Portfile	2011-09-07 22:13:56 UTC (rev 83620)
> @@ -48,14 +48,14 @@
> set wrappers	{mpicc mpicxx mpic++}
> post-destroot {
> 	foreach bin {mpirun mpiexec} {
> -		system "cd ${destroot}${prefix}/bin \
> -			&& ln -sf ${prefix}/lib/${name}/bin/orterun open${bin}"
> +		system -W ${destroot}${prefix}/bin \
> +			"ln -sf ${prefix}/lib/${name}/bin/orterun open${bin}"

Can't you just use the Tcl "ln" command instead of using "system" at all?






More information about the macports-dev mailing list