[Asterisk-cvs] asterisk Makefile,1.122,1.123
markster at lists.digium.com
markster at lists.digium.com
Sat Nov 20 01:47:21 CST 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv7831
Modified Files:
Makefile
Log Message:
Don't overwrite unchanged files
Index: Makefile
===================================================================
RCS file: /usr/cvsroot/asterisk/Makefile,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -d -r1.122 -r1.123
--- Makefile 19 Nov 2004 14:04:57 -0000 1.122
+++ Makefile 20 Nov 2004 06:47:33 -0000 1.123
@@ -451,6 +451,10 @@
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"; \
More information about the svn-commits
mailing list