@echo off
\dev\tools\deltree /y d:\dev\temp\tmp_*.* >nul
cd "\dev\software\libraries\linespec\Demo applications\source"
start /w \dev\tools\runpb402 "Starfield.pb" /exe "\dev\temp\tmp_stf2.tmp" /inlineasm /RESOURCE "LSDemo (Particles).rc" /quiet
start /w \dev\tools\runpb402 "Encircle.pb" /exe "\dev\temp\tmp_enc2.tmp" /inlineasm /RESOURCE "LSDemo (Particles).rc" /quiet
start /w \dev\tools\runpb402 "FireBeam.pb" /exe "\dev\temp\tmp_bmf2.tmp" /inlineasm /RESOURCE "LSDemo (PlasmaBeam).rc" /quiet
start /w \dev\tools\runpb402 "PlasmaBeam.pb" /exe "\dev\temp\tmp_bmp2.tmp" /inlineasm /RESOURCE "LSDemo (PlasmaBeam).rc" /quiet
start /w \dev\tools\runpb402 "RaveN.pb" /exe "\dev\temp\tmp_prn2.tmp" /inlineasm /RESOURCE "LSDemo (Particles).rc" /quiet
start /w \dev\tools\runpb402 "SpectrumBeam.pb" /exe "\dev\temp\tmp_bms2.tmp" /inlineasm /RESOURCE "LSDemo (PlasmaBeam).rc" /quiet
\dev\tools\PostVFix \dev\temp\tmp_stf2.tmp \dev\temp\tmp_stf2.exe
\dev\tools\PostVFix \dev\temp\tmp_enc2.tmp \dev\temp\tmp_enc2.exe
\dev\tools\PostVFix \dev\temp\tmp_bmf2.tmp \dev\temp\tmp_bmf2.exe
\dev\tools\PostVFix \dev\temp\tmp_bmp2.tmp \dev\temp\tmp_bmp2.exe
\dev\tools\PostVFix \dev\temp\tmp_prn2.tmp \dev\temp\tmp_prn2.exe
\dev\tools\PostVFix \dev\temp\tmp_bms2.tmp \dev\temp\tmp_bms2.exe
\dev\tools\upx -qqq --best \dev\temp\tmp_stf2.exe
\dev\tools\upx -qqq --best \dev\temp\tmp_enc2.exe
\dev\tools\upx -qqq --best \dev\temp\tmp_bmf2.exe
\dev\tools\upx -qqq --best \dev\temp\tmp_bmp2.exe
\dev\tools\upx -qqq --best \dev\temp\tmp_prn2.exe
\dev\tools\upx -qqq --best \dev\temp\tmp_bms2.exe
copy /y \dev\temp\tmp_stf2.exe "\dev\software\libraries\linespec\Demo Applications\LineSpec Demo - Starfield.exe" >nul
copy /y \dev\temp\tmp_enc2.exe "\dev\software\libraries\linespec\Demo Applications\LineSpec Demo - Encircle.exe" >nul
copy /y \dev\temp\tmp_bmf2.exe "\dev\software\libraries\linespec\Demo Applications\LineSpec Demo - FireBeam.exe" >nul
copy /y \dev\temp\tmp_bmp2.exe "\dev\software\libraries\linespec\Demo Applications\LineSpec Demo - PlasmaBeam.exe" >nul
copy /y \dev\temp\tmp_prn2.exe "\dev\software\libraries\linespec\Demo Applications\LineSpec Demo - RaveN.exe" >nul
copy /y \dev\temp\tmp_bms2.exe "\dev\software\libraries\linespec\Demo Applications\LineSpec Demo - SpectrumBeam.exe" >nul
rem \dev\tools\deltree /y d:\dev\temp\tmp_*.* >nul
echo Done.