@echo off
\dev\tools\deltree /y d:\dev\temp\tmp_*.* >nul
cd \dev\software\libraries\ctsslay
start /w \dev\tools\runpb402 "ctSSLayer_BASS_FullDLL.pb"   /resource "ctSSLayer_BASS_FullDLL.rc"   /exe "D:\dev\temp\tmp_bssf.dll" /quiet /dll
start /w \dev\tools\runpb402 "ctSSLayer_BASS_Calaym.pb"    /resource "ctSSLayer_BASS_Calaym.rc"    /exe "D:\dev\temp\tmp_bssc.dll" /quiet /dll
start /w \dev\tools\runpb402 "ctSSLayer_FMod_FullDLL.pb"   /resource "ctSSLayer_FMod_FullDLL.rc"   /exe "D:\dev\temp\tmp_fmdf.dll" /quiet /dll
start /w \dev\tools\runpb402 "ctSSLayer_FMod_Calaym.pb"    /resource "ctSSLayer_FMod_Calaym.rc"    /exe "D:\dev\temp\tmp_fmdc.dll" /quiet /dll
start /w \dev\tools\runpb402 "ctSSLayer_FmodEx_FullDLL.pb" /resource "ctSSLayer_FmodEx_FullDLL.rc" /exe "D:\dev\temp\tmp_fmxf.dll" /quiet /dll
start /w \dev\tools\runpb402 "ctSSLayer_FmodEx_Calaym.pb"  /resource "ctSSLayer_FmodEx_Calaym.rc"  /exe "D:\dev\temp\tmp_fmxc.dll" /quiet /dll

\dev\tools\PostVFix \dev\temp\tmp_bssf.dll \dev\temp\tmp_bssf.vfx
\dev\tools\PostVFix \dev\temp\tmp_bssc.dll \dev\temp\tmp_bssc.vfx
\dev\tools\PostVFix \dev\temp\tmp_fmdf.dll \dev\temp\tmp_fmdf.vfx
\dev\tools\PostVFix \dev\temp\tmp_fmdc.dll \dev\temp\tmp_fmdc.vfx
\dev\tools\PostVFix \dev\temp\tmp_fmxf.dll \dev\temp\tmp_fmxf.vfx
\dev\tools\PostVFix \dev\temp\tmp_fmxc.dll \dev\temp\tmp_fmxc.vfx

\dev\tools\upx -qqq --best --compress-icons=0 \dev\temp\tmp_*.new

copy /y \dev\temp\tmp_bssf.vfx \dev\software\libraries\ctsslay\bin\ctSSLay_BASS.dll >nul
copy /y \dev\temp\tmp_bssc.vfx \dev\software\libraries\ctsslay\bin\ctSSLay_BASS.lay >nul
copy /y \dev\temp\tmp_fmdf.vfx \dev\software\libraries\ctsslay\bin\ctSSLay_FMod.dll >nul
copy /y \dev\temp\tmp_fmdc.vfx \dev\software\libraries\ctsslay\bin\ctSSLay_FMod.lay >nul
copy /y \dev\temp\tmp_fmxf.vfx \dev\software\libraries\ctsslay\bin\ctSSLay_FModEx.dll >nul
copy /y \dev\temp\tmp_fmxc.vfx \dev\software\libraries\ctsslay\bin\ctSSLay_FModEx.lay >nul
REM \dev\tools\deltree /y d:\dev\temp\tmp_*.* >nul
echo Done.