]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
This patch from 10249 is worth applying! It prevents downloading sound files if they...
authorSteve Murphy <murf@digium.com>
Fri, 20 Jul 2007 21:36:05 +0000 (21:36 +0000)
committerSteve Murphy <murf@digium.com>
Fri, 20 Jul 2007 21:36:05 +0000 (21:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76211 65c4cc65-6c06-0410-ace0-fbb531ad65f3

sounds/Makefile

index 22b651055c9a801867578e8470bb6c0d3e3b9772..a9a972ed83d4bf1cd3e951b08b2e3f90591d3e31 100644 (file)
@@ -131,13 +131,13 @@ $(MOH_DIR)/.asterisk-moh-%: have_download
        touch $@
 
 asterisk-core-%.tar.gz: have_download
-       @$(DOWNLOAD) $(WGET_ARGS) $(SOUNDS_URL)/$@
+       @if test ! -f $@ ;then $(DOWNLOAD) $(WGET_ARGS) $(SOUNDS_URL)/$@;fi
 
 asterisk-extra-%.tar.gz: have_download
-       @$(DOWNLOAD) $(WGET_ARGS) $(SOUNDS_URL)/$@
+       @if test ! -f $@ ;then $(DOWNLOAD) $(WGET_ARGS) $(SOUNDS_URL)/$@;fi
 
 asterisk-moh-%.tar.gz: have_download
-       @$(DOWNLOAD) $(WGET_ARGS) $(SOUNDS_URL)/$@
+       @if test ! -f $@ ;then $(DOWNLOAD) $(WGET_ARGS) $(SOUNDS_URL)/$@;fi
 
 dist-clean:
        rm -f *.tar.gz