Merged revisions 299907 via svnmerge from
authorPaul Belanger <paul.belanger@polybeacon.com>
Wed, 29 Dec 2010 18:24:19 +0000 (18:24 +0000)
committerPaul Belanger <paul.belanger@polybeacon.com>
Wed, 29 Dec 2010 18:24:19 +0000 (18:24 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r299907 | pabelanger | 2010-12-29 13:22:23 -0500 (Wed, 29 Dec 2010) | 2 lines

  Properly quote varibles for MAC OS X
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@299908 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile
build_tools/make_sample_voicemail
sounds/Makefile

index c47c4f1..193b0be 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -690,7 +690,7 @@ samples: adsi
                rm -f $(DESTDIR)$(ASTCONFPATH).tmp ; \
        fi ; \
        $(INSTALL) -d $(DESTDIR)$(ASTSPOOLDIR)/voicemail/default/1234/INBOX
-       build_tools/make_sample_voicemail "$(DESTDIR)/$(ASTDATADIR)" "$(DESTDIR)/$(ASTSPOOLDIR)"
+       build_tools/make_sample_voicemail "$(DESTDIR)$(ASTDATADIR)" "$(DESTDIR)$(ASTSPOOLDIR)"
 
        @for x in phoneprov/*; do \
                dst="$(DESTDIR)$(ASTDATADIR)/$$x" ;     \
index 272cf37..78062dd 100755 (executable)
@@ -4,22 +4,22 @@ for lang in /en/ /fr/ /es/
   do
   for format in ulaw alaw wav gsm g729 g722
     do
-    [ ! -f ${1}/sounds${lang}vm-isunavail.${format} ] && continue
+    [ ! -f "${1}/sounds${lang}vm-isunavail.${format}" ] && continue
 
-    mkdir -p ${2}/voicemail/default/1234${lang}
+    mkdir -p "${2}/voicemail/default/1234${lang}"
     
-    : > ${2}/voicemail/default/1234${lang}unavail.${format}
+    : > "${2}/voicemail/default/1234${lang}unavail.${format}"
     
     for file in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isunavail
       do
-      cat ${1}/sounds${lang}${file}.${format} >> ${2}/voicemail/default/1234${lang}unavail.${format}
+      cat "${1}/sounds${lang}${file}.${format}" >> "${2}/voicemail/default/1234${lang}unavail.${format}"
     done
 
-    : > ${2}/voicemail/default/1234${lang}busy.${format}
+    : > "${2}/voicemail/default/1234${lang}busy.${format}"
     
     for file in vm-theperson digits/1 digits/2 digits/3 digits/4 vm-isonphone
       do
-      cat ${1}/sounds${lang}${file}.${format} >> ${2}/voicemail/default/1234${lang}busy.${format}
+      cat "${1}/sounds${lang}${file}.${format}" >> "${2}/voicemail/default/1234${lang}busy.${format}"
     done
   done
 done
index 7ac405d..47b42d9 100644 (file)
@@ -144,6 +144,9 @@ endif
 all: prefixcmd $(SOUNDS_CACHE_DIR) $(CORE_SOUNDS) $(EXTRA_SOUNDS) $(MOH)
 
 prefixcmd:
+       if [ -d $(TMPDATADIR) ] ; then \
+               rm -rf $(TMPDATADIR) ; \
+       fi
        @$(PREFIXCMD)
 
 have_download: