[m-dev.] diff: Re-enable DD test cases
Fergus Henderson
fjh at cs.mu.OZ.AU
Tue Jan 25 10:24:19 AEDT 2000
On 25-Jan-2000, Mark Anthony BROWN <dougl at cs.mu.OZ.AU> wrote:
> tests/Mmake.common:
> Return the appropriate exit status when making the *.res file.
...
> diff $(DIFF_OPTS) $*.exp $*.out > $@ || \
> | { test -f $*.exp2 && \
> | if diff $(DIFF_OPTS) $*.exp2 $*.out > $*.res2; then \
> cp $*.res2 $@; \
> | else \
> | { test `wc -l < $@` -le `wc -l < $*.res2` || \
> | cp $*.res2 $@; } && false; \
> | fi \
> | }
You need a `;' after the `fi' before the `}'.
Otherwise it won't work with all versions of /bin/sh.
--
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.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list