Portability fix: 'if ! diff ...' is not always supported in sh.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Wed, 23 Oct 2002 17:01:38 +0000 (17:01 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Wed, 23 Oct 2002 17:01:38 +0000 (17:01 +0000)
Makefile.inc

index dd724ba3fe1cf22ac74d16056f580cb6f11fadc0..aa01812cf7e657818cd3b060b17d25fef09da4e0 100644 (file)
@@ -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