@echo off set deploypath=..\..\..\..\..\..\Deploy set src=..\..\..\..\Imath if not exist %deploypath% mkdir %deploypath% set intdir=%1% if %intdir%=="" set intdir=Release echo Installing into %intdir% set instpath=%deploypath%\lib\%intdir% if not exist %instpath% mkdir %instpath% copy ..\%intdir%\Imath.lib %instpath% copy ..\%intdir%\Imath.exp %instpath% set instpath=%deploypath%\bin\%intdir% if not exist %instpath% mkdir %instpath% copy ..\%intdir%\Imath.dll %instpath% cd %src% set instpath=..\..\..\Deploy\include mkdir %instpath% copy *.h %instpath%