automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: info files deleted by "make"


From: Bruno Haible
Subject: Re: info files deleted by "make"
Date: Mon, 24 Feb 2003 21:11:33 +0100 (CET)

Alexandre Duret-Lutz writes:

> Here is my proposal, based on yours.  Anything blatantly wrong?

Thanks. These lines catch my eye:

> +       test -f $$f && mv $$f $$backupdir; \

...

> +     test $$rc != 0 && mv $$backupdir/* `echo "./$@" | sed 's|[^/]*$$||'`; \

Around 1999/2000, such constructs used to fail on FreeBSD with BSD
'make'. My interpretation is that this 'make' implementation runs all
commands with '/bin/sh -e', not just /bin/sh. The fix against this
oddity is to use "if test ...; then" or to reverse the test and use ||
instead of &&:

          if test -f $$f; then mv $$f $$backupdir; fi; \

        test $$rc = 0 || mv $$backupdir/* `echo "./$@" | sed 's|[^/]*$$||'`; \

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]