Skip to content
Snippets Groups Projects
Commit 4d0ceb96 authored by Luigi Rizzo's avatar Luigi Rizzo
Browse files

use a simpler idiom for 'cmp -s ...'

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93162 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 5279d712
No related branches found
No related tags found
No related merge requests found
...@@ -378,30 +378,22 @@ $(OTHER_SUBDIRS): ...@@ -378,30 +378,22 @@ $(OTHER_SUBDIRS):
defaults.h: makeopts defaults.h: makeopts
@build_tools/make_defaults_h > $@.tmp @build_tools/make_defaults_h > $@.tmp
@if cmp -s $@.tmp $@ ; then : ; else \ @cmp -s $@.tmp $@ || mv $@.tmp $@
mv $@.tmp $@ ; \
fi
@rm -f $@.tmp @rm -f $@.tmp
include/asterisk/version.h: include/asterisk/version.h:
@build_tools/make_version_h > $@.tmp @build_tools/make_version_h > $@.tmp
@if cmp -s $@.tmp $@ ; then : ; else \ @cmp -s $@.tmp $@ || mv $@.tmp $@
mv $@.tmp $@ ; \
fi
@rm -f $@.tmp @rm -f $@.tmp
include/asterisk/buildopts.h: menuselect.makeopts include/asterisk/buildopts.h: menuselect.makeopts
@build_tools/make_buildopts_h > $@.tmp @build_tools/make_buildopts_h > $@.tmp
@if cmp -s $@.tmp $@ ; then : ; else \ @cmp -s $@.tmp $@ || mv $@.tmp $@
mv $@.tmp $@ ; \
fi
@rm -f $@.tmp @rm -f $@.tmp
include/asterisk/build.h: include/asterisk/build.h:
@build_tools/make_build_h > $@.tmp @build_tools/make_build_h > $@.tmp
@if cmp -s $@.tmp $@ ; then : ; else \ @cmp -s $@.tmp $@ || mv $@.tmp $@
mv $@.tmp $@ ; \
fi
@rm -f $@.tmp @rm -f $@.tmp
$(SUBDIRS_CLEAN): $(SUBDIRS_CLEAN):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment