On Tue, Jan 12, 2010 at 01:21:51AM -0800, Robert Bradshaw wrote:
> Since the goal is to remove the -j flags, why not
>
> MAKE=`echo $MAKE | sed -E "s/-j +[^ ]+|--jobs=[^ ]+//g"`
>
> This way if any other flags were part of $MAKE they wouldn't get dropped 
> as well. (Not sure if Solaris can handle extended regex...but that' easy 
> to fix if it can't.)

'make -j' (unlimited number of jobs) would also have to be caught, as well as
setting the j flag in MAKEFLAGS. The easiest way to force a non-parallel make
is probably to do

MAKE="$MAKE -j 1"

since that overrides both earlier -j flags in $MAKE and any j flags in
$MAKEFLAGS. With OpenSolaris' make this causes a warning ("Warning: Ignoring
DistributedMake -j option") but no errors.

-Willem Jan
-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to