From: Peter Verthez Date: Wed, 23 Oct 2002 17:01:38 +0000 (+0000) Subject: Portability fix: 'if ! diff ...' is not always supported in sh. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=613b373ecea9c382ed14cfc091e3f92627de631b;p=gedcom-parse.git Portability fix: 'if ! diff ...' is not always supported in sh. --- diff --git a/Makefile.inc b/Makefile.inc index dd724ba..aa01812 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -16,8 +16,10 @@ endef then \ touch $(srcdir)/$@; \ fi - if ! diff -q $< $(srcdir)/$@ > /dev/null; \ + if diff $< $(srcdir)/$@ > /dev/null 2>&1; \ then \ + : ; \ + else \ rm $(srcdir)/$@; \ cp $(srcdir)/$< $(srcdir)/$@; \ fi