aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rwxr-xr-xbuild_tools/make_sample_voicemail12
-rw-r--r--sounds/Makefile3
3 files changed, 10 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index c47c4f148..193b0be0b 100644
--- 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" ; \
diff --git a/build_tools/make_sample_voicemail b/build_tools/make_sample_voicemail
index 272cf379a..78062dd70 100755
--- a/build_tools/make_sample_voicemail
+++ b/build_tools/make_sample_voicemail
@@ -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
diff --git a/sounds/Makefile b/sounds/Makefile
index 7ac405d38..47b42d9a0 100644
--- a/sounds/Makefile
+++ b/sounds/Makefile
@@ -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: