use a simpler idiom for 'cmp -s ...'
authorLuigi Rizzo <rizzo@icir.org>
Sun, 16 Dec 2007 10:34:55 +0000 (10:34 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Sun, 16 Dec 2007 10:34:55 +0000 (10:34 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93162 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile

index fd25fd9..3e42e04 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -378,30 +378,22 @@ $(OTHER_SUBDIRS):
 
 defaults.h: makeopts
        @build_tools/make_defaults_h > $@.tmp
-       @if cmp -s $@.tmp $@ ; then : ; else \
-               mv $@.tmp $@ ; \
-       fi
+       @cmp -s $@.tmp $@ || mv $@.tmp $@
        @rm -f $@.tmp
 
 include/asterisk/version.h:
        @build_tools/make_version_h > $@.tmp
-       @if cmp -s $@.tmp $@ ; then : ; else \
-               mv $@.tmp $@ ; \
-       fi
+       @cmp -s $@.tmp $@ || mv $@.tmp $@
        @rm -f $@.tmp
 
 include/asterisk/buildopts.h: menuselect.makeopts
        @build_tools/make_buildopts_h > $@.tmp
-       @if cmp -s $@.tmp $@ ; then : ; else \
-               mv $@.tmp $@ ; \
-       fi
+       @cmp -s $@.tmp $@ || mv $@.tmp $@
        @rm -f $@.tmp
 
 include/asterisk/build.h:
        @build_tools/make_build_h > $@.tmp
-       @if cmp -s $@.tmp $@ ; then : ; else \
-               mv $@.tmp $@ ; \
-       fi
+       @cmp -s $@.tmp $@ || mv $@.tmp $@
        @rm -f $@.tmp
 
 $(SUBDIRS_CLEAN):