[asterisk-commits] pabelanger: branch 1.8 r299907 - in /branches/1.8: ./ build_tools/ sounds/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Dec 29 18:22:27 UTC 2010
Author: pabelanger
Date: Wed Dec 29 12:22:23 2010
New Revision: 299907
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=299907
Log:
Properly quote varibles for MAC OS X
Modified:
branches/1.8/Makefile
branches/1.8/build_tools/make_sample_voicemail
branches/1.8/sounds/Makefile
Modified: branches/1.8/Makefile
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/Makefile?view=diff&rev=299907&r1=299906&r2=299907
==============================================================================
--- branches/1.8/Makefile (original)
+++ branches/1.8/Makefile Wed Dec 29 12:22:23 2010
@@ -690,7 +690,7 @@
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" ; \
Modified: branches/1.8/build_tools/make_sample_voicemail
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/build_tools/make_sample_voicemail?view=diff&rev=299907&r1=299906&r2=299907
==============================================================================
--- branches/1.8/build_tools/make_sample_voicemail (original)
+++ branches/1.8/build_tools/make_sample_voicemail Wed Dec 29 12:22:23 2010
@@ -4,22 +4,22 @@
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
Modified: branches/1.8/sounds/Makefile
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/sounds/Makefile?view=diff&rev=299907&r1=299906&r2=299907
==============================================================================
--- branches/1.8/sounds/Makefile (original)
+++ branches/1.8/sounds/Makefile Wed Dec 29 12:22:23 2010
@@ -144,6 +144,9 @@
all: prefixcmd $(SOUNDS_CACHE_DIR) $(CORE_SOUNDS) $(EXTRA_SOUNDS) $(MOH)
prefixcmd:
+ if [ -d $(TMPDATADIR) ] ; then \
+ rm -rf $(TMPDATADIR) ; \
+ fi
@$(PREFIXCMD)
have_download:
More information about the asterisk-commits
mailing list