rem @echo off
echo Generating %1 ini file

set oldinc=%include
set include=..\src\include;..\src\xvaga;..\src\ve;%~p1

type ..\src\include\uml.h >%TMP%\%~n1.tmp
type ..\src\ve\veuml.h >>%TMP%\%~n1.tmp
type %1 >>%TMP%\%~n1.tmp
cl /nologo /EP %TMP%\%~n1.tmp >%TMP%\%~n1.ini
fastrip %TMP%\%~n1.ini %2

set include=%oldinc
set oldinc=

del %TMP%\%~n1.ini
del %TMP%\%~n1.tmp

cd %~p2