From: Steve Murphy Date: Fri, 20 Jul 2007 21:36:05 +0000 (+0000) Subject: This patch from 10249 is worth applying! It prevents downloading sound files if they... X-Git-Tag: 1.4.9~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=54e80e7c46f30c72b27dcf212e00690ae6fd5e71;p=thirdparty%2Fasterisk.git This patch from 10249 is worth applying! It prevents downloading sound files if they are already downloaded. Darn Practical, if you ask me git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76211 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/sounds/Makefile b/sounds/Makefile index 22b651055c..a9a972ed83 100644 --- a/sounds/Makefile +++ b/sounds/Makefile @@ -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