[m-dev.] diff: mmake: if [ -d Mercury ] then enable --use-subdirs

Fergus Henderson fjh at cs.mu.OZ.AU
Fri May 29 18:45:39 AEST 1998


On 29-May-1998, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> 
> > -use_subdirs=${MMAKE_USE_SUBDIRS=no}
> > +use_subdirs=${MMAKE_USE_SUBDIRS=`
> > +	if [ -d Mercury ]; then echo yes; else echo no; fi`}
> 
> This is an inefficient way of doing this. The more straightforward
> 
> if test -d Mercury
> then
> 	use_subdirs=${MMAKE_USE_SUBDIRS=yes}
> else
> 	use_subdirs=${MMAKE_USE_SUBDIRS=no}
> fi
> 
> ought to be faster, since if test is builtin it does not create a new process.

I've committed the change you suggested.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.



More information about the developers mailing list