@echo off

rem !! Compile.bat
rem Usage is: compile [demoname] [pakname]

mkdir tmp
copy %1 tmp\foo.dem
cd tmp
..\mldem foo.dem x mvdemos.bat demos.lst
del foo.dem
call mvdemos.bat

rem !! This line is entirely optional - you can remove
rem !! it or insert other parameters.
demtool -fvng

cd ..
.\mlpak %2 tmp demos.lst
deltree tmp
