projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd4ff4e
)
Don't overwrite unchanged files
author
Mark Spencer
<markster@digium.com>
Sat, 20 Nov 2004 06:47:33 +0000
(06:47 +0000)
committer
Mark Spencer
<markster@digium.com>
Sat, 20 Nov 2004 06:47:33 +0000
(06:47 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4300
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
8795386
..
86fe067
100755
(executable)
--- 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"; \