diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-11-20 06:47:33 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-11-20 06:47:33 +0000 |
commit | b4febd4073db9b651ce7c099a7c55365ba0da252 (patch) | |
tree | 01ad27fbe56e330e9f1a4583530c8fa09a09f8f2 /Makefile | |
parent | fc16142d07fc83655ecb3efe74b1e01b013cea3a (diff) |
Don't overwrite unchanged files
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4300 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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"; \ |