[asterisk-commits] rizzo: trunk r93162 - /trunk/Makefile
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun Dec 16 04:34:55 CST 2007
Author: rizzo
Date: Sun Dec 16 04:34:55 2007
New Revision: 93162
URL: http://svn.digium.com/view/asterisk?view=rev&rev=93162
Log:
use a simpler idiom for 'cmp -s ...'
Modified:
trunk/Makefile
Modified: trunk/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/Makefile?view=diff&rev=93162&r1=93161&r2=93162
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Sun Dec 16 04:34:55 2007
@@ -378,30 +378,22 @@
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):
More information about the asterisk-commits
mailing list