@echo off

PATH=..\Utilities;%PATH%

Rem Bin
xcopy "..\Runtime\Solutions\VS2013\Bin\x64\Debug\Mix.dll" "..\..\Bin\VS2013\x64\Debug\" /I /Y
xcopy "..\Runtime\Solutions\VS2013\Bin\x64\Release\Mix.dll" "..\..\Bin\VS2013\x64\Release\" /I /Y
xcopy "..\Runtime\Solutions\VS2013\Bin\x86\Debug\Mix.dll" "..\..\Bin\VS2013\x86\Debug\" /I /Y
xcopy "..\Runtime\Solutions\VS2013\Bin\x86\Release\Mix.dll" "..\..\Bin\VS2013\x86\Release\" /I /Y

Rem Lib
xcopy "..\Runtime\Solutions\VS2013\Bin\x64\Debug\Mix.lib" "..\..\Lib\VS2013\x64\Debug\" /I /Y
xcopy "..\Runtime\Solutions\VS2013\Bin\x64\Release\Mix.lib" "..\..\Lib\VS2013\x64\Release\" /I /Y
xcopy "..\Runtime\Solutions\VS2013\Bin\x86\Debug\Mix.lib" "..\..\Lib\VS2013\x86\Debug\" /I /Y
xcopy "..\Runtime\Solutions\VS2013\Bin\x86\Release\Mix.lib" "..\..\Lib\VS2013\x86\Release\" /I /Y

Rem Include
set MIX_INC_DST_DIR=..\..\Include\Mix
if not exist %MIX_INC_DST_DIR% ( mkdir %MIX_INC_DST_DIR% )
duplicator.exe /sd "..\Runtime\Source\Mix" /td %MIX_INC_DST_DIR% /ed "Private" /efn ".gitignore"

if "%1" == "" (
  @echo on
  pause
) else (
  @echo on
)
