@target=`echo $@ | sed -e 's|^.*-||'`; \
target_prefix=`echo $@ | sed -e 's|-.*$$||'`; \
sound_perfix=`echo $@ | sed -e 's|-.*||'`; \
- sounds_version=`cat $(switch_srcdir)/build/sounds_version.txt`;\
moh_version=`cat $(switch_srcdir)/build/moh_version.txt`;\
full_sound_dir=`echo $@ | sed -e 's|^sounds||' | sed -e 's|^-||' | sed -e 's|-install$$||'`; \
test ! -z $$full_sound_dir || full_sound_dir=`echo $(DEFAULT_SOUNDS)`; \
+ base_sound_dir=`echo $$full_sound_dir | sed -e 's|-[^-]*000$$||' ` ;\
+ sounds_version=`grep $$base_sound_dir $(switch_srcdir)/build/sounds_version.txt | cut -d ' ' -f2`;\
soundfile=`echo freeswitch-sounds-$$full_sound_dir-$$moh_version.tar.gz`; \
echo $$full_sound_dir | grep music >/dev/null || soundfile=`echo freeswitch-sounds-$$full_sound_dir-$$sounds_version.tar.gz`; \
if test "$$target" = "install"; then $(MAKE) $(AM_MAKEFLAGS) core_install; else $(MAKE) $(AM_MAKEFLAGS) core ; fi; \
-1.0.12
+en-us-callie 1.0.12
+ru-RU-elena 1.0.12
+
<Tool\r
Name="VCCustomBuildTool"\r
Description="Downloading 32khzsound."\r
- CommandLine="set /P SOUND_VERSION=<$(ProjectDir)..\..\build\sounds_version.txt
if not exist "$(ProjectDir)..\sounds\en\us\callie\voicemail\32000" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://files.freeswitch.org/freeswitch-sounds-en-us-callie-32000-%SOUND_VERSION%.tar.gz "$(ProjectDir)..\sounds"
"\r
+ CommandLine="if not exist "$(ProjectDir)..\sounds\en\us\callie\voicemail\32000" cscript /nologo "$(ProjectDir)util.vbs" GetUnzipSounds en-us-callie 32000 "$(ProjectDir)..\sounds" "$(ProjectDir)..\..\build\sounds_version.txt""\r
Outputs="$(ProjectDir)..\sounds\en\us\callie\voicemail\32000"\r
/>\r
</FileConfiguration>\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Downloading 32khzsound."\r
- CommandLine="set /P SOUND_VERSION=<$(ProjectDir)..\..\build\sounds_version.txt
if not exist "$(ProjectDir)..\sounds\en\us\callie\voicemail\32000" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://files.freeswitch.org/freeswitch-sounds-en-us-callie-32000-%SOUND_VERSION%.tar.gz "$(ProjectDir)..\sounds"
"\r
+ CommandLine="if not exist "$(ProjectDir)..\sounds\en\us\callie\voicemail\32000" cscript /nologo "$(ProjectDir)util.vbs" GetUnzipSounds en-us-callie 32000 "$(ProjectDir)..\sounds" "$(ProjectDir)..\..\build\sounds_version.txt""\r
Outputs="$(ProjectDir)..\sounds\en\us\callie\voicemail\32000"\r
/>\r
</FileConfiguration>\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Downloading 16khzsound."\r
- CommandLine="set /P SOUND_VERSION=<$(ProjectDir)..\..\build\sounds_version.txt
if not exist "$(ProjectDir)..\sounds\en\us\callie\voicemail\16000" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://files.freeswitch.org/freeswitch-sounds-en-us-callie-16000-%SOUND_VERSION%.tar.gz "$(ProjectDir)..\sounds"
"\r
+ CommandLine="if not exist "$(ProjectDir)..\sounds\en\us\callie\voicemail\16000" cscript /nologo "$(ProjectDir)util.vbs" GetUnzipSounds en-us-callie 16000 "$(ProjectDir)..\sounds" "$(ProjectDir)..\..\build\sounds_version.txt""\r
Outputs="$(ProjectDir)..\sounds\en\us\callie\voicemail\16000"\r
/>\r
</FileConfiguration>\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Downloading 16khzsound."\r
- CommandLine="set /P SOUND_VERSION=<$(ProjectDir)..\..\build\sounds_version.txt
if not exist "$(ProjectDir)..\sounds\en\us\callie\voicemail\16000" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://files.freeswitch.org/freeswitch-sounds-en-us-callie-16000-%SOUND_VERSION%.tar.gz "$(ProjectDir)..\sounds"
"\r
+ CommandLine="if not exist "$(ProjectDir)..\sounds\en\us\callie\voicemail\16000" cscript /nologo "$(ProjectDir)util.vbs" GetUnzipSounds en-us-callie 16000 "$(ProjectDir)..\sounds" "$(ProjectDir)..\..\build\sounds_version.txt""\r
Outputs="$(ProjectDir)..\sounds\en\us\callie\voicemail\16000"\r
/>\r
</FileConfiguration>\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Downloading 8khzsound."\r
- CommandLine="set /P SOUND_VERSION=<$(ProjectDir)..\..\build\sounds_version.txt
if not exist "$(ProjectDir)..\sounds\en\us\callie\voicemail\8000" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://files.freeswitch.org/freeswitch-sounds-en-us-callie-8000-%SOUND_VERSION%.tar.gz "$(ProjectDir)..\sounds"
"\r
+ CommandLine="if not exist "$(ProjectDir)..\sounds\en\us\callie\voicemail\8000" cscript /nologo "$(ProjectDir)util.vbs" GetUnzipSounds en-us-callie 8000 "$(ProjectDir)..\sounds" "$(ProjectDir)..\..\build\sounds_version.txt""\r
Outputs="$(ProjectDir)..\sounds\en\us\callie\voicemail\8000"\r
/>\r
</FileConfiguration>\r
<Tool\r
Name="VCCustomBuildTool"\r
Description="Downloading 8khzsound."\r
- CommandLine="set /P SOUND_VERSION=<$(ProjectDir)..\..\build\sounds_version.txt
if not exist "$(ProjectDir)..\sounds\en\us\callie\voicemail\8000" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://files.freeswitch.org/freeswitch-sounds-en-us-callie-8000-%SOUND_VERSION%.tar.gz "$(ProjectDir)..\sounds"
"\r
+ CommandLine="if not exist "$(ProjectDir)..\sounds\en\us\callie\voicemail\8000" cscript /nologo "$(ProjectDir)util.vbs" GetUnzipSounds en-us-callie 8000 "$(ProjectDir)..\sounds" "$(ProjectDir)..\..\build\sounds_version.txt""\r
Outputs="$(ProjectDir)..\sounds\en\us\callie\voicemail\8000"\r
/>\r
</FileConfiguration>\r
Wget objArgs(1), Showpath(objArgs(2))\r
Case "GetUnzip" \r
WgetUnCompress objArgs(1), Showpath(objArgs(2))\r
+ Case "GetUnzipSounds"\r
+ WgetSounds objArgs(1), objArgs(2), Showpath(objArgs(3)), objArgs(4)\r
Case "Version" \r
'CreateVersion(tmpFolder, VersionDir, includebase, includedest)\r
CreateVersion Showpath(objArgs(1)), Showpath(objArgs(2)), objArgs(3), objArgs(4)\r
' Utility Subroutines\r
' *******************\r
\r
+Sub WgetSounds(PrimaryName, Freq, DestFolder, VersionFile)\r
+ BaseURL = "http://files.freeswitch.org/freeswitch-sounds"\r
+ Set objFSO = CreateObject("Scripting.FileSystemObject")\r
+ Set objTextFile = objFSO.OpenTextFile(VersionFile,1)\r
+ Do Until objTextFile.AtEndOfStream\r
+ strLine = objTextFile.Readline\r
+ versionPos = InstrRev(strLine, " ", -1, 1)\r
+ name = Left(strLine, versionPos-1)\r
+ if name = PrimaryName Then\r
+ version = Right(strLine, Len(strLine) - versionPos)\r
+ Wscript.Echo "Sound name: " & name & " Version " & version\r
+ URL = BaseURL & "-" & name & "-" & Freq &"-" & version & ".tar.gz"\r
+ Wscript.Echo "URL: " & URL\r
+ WgetUnCompress URL, Showpath(DestFolder)\r
+ End If\r
+ Loop\r
+End Sub\r
\r
Sub WgetUnCompress(URL, DestFolder)\r
If Right(DestFolder, 1) <> "\" Then DestFolder = DestFolder & "\" End If\r