summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-11-20 06:47:33 +0000
committerMark Spencer <markster@digium.com>2004-11-20 06:47:33 +0000
commit877dcd1aa558bef3db89dfcf6cc8a470bf9776ce (patch)
tree01ad27fbe56e330e9f1a4583530c8fa09a09f8f2 /Makefile
parentcd4ff4ecb1c1c0e12eec9662ecd9980afa9ac229 (diff)
Don't overwrite unchanged files
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4300 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 87953865c..86fe06743 100755
--- a/Makefile
+++ b/Makefile
@@ -451,6 +451,10 @@ samples: all datafiles adsi
for x in configs/*.sample; do \
if [ -f $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` ]; then \
if [ "$(OVERWRITE)" = "y" ]; then \
+ if cmp -s $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` $$x ; then \
+ echo "Config file $$x is unchanged"; \
+ continue; \
+ fi ; \
mv -f $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample` $(DESTDIR)$(ASTETCDIR)/`basename $$x .sample`.old ; \
else \
echo "Skipping config file $$x"; \