@echo off

rem --- Clean up ---
del ZenLib_MSVC.7z
rmdir ZenLib_MSVC /S /Q
mkdir ZenLib_MSVC


rem --- Copying : Include ---
mkdir ZenLib_MSVC\Include\ZenLib
copy ..\Source\ZenLib\*.h ZenLib_MSVC\Include\ZenLib\

rem --- Copying : Documentation ---
mkdir Doc
cd ..\Source\Doc
..\..\..\Shared\Binary\Doxygen Doxygen
cd ..\..\Release
mkdir ZenLib_MSVC\Doc\
copy Doc\*.* ZenLib_MSVC\Doc\
rmdir Doc /S /Q
copy ..\Source\Doc\Documentation.html ZenLib_MSVC\

rem --- Copying : Library ---
copy MSVC\Library\ZenLib.lib ZenLib_MSVC\

rem --- Copying : Information files ---
copy ..\*.txt ZenLib_MSVC\


rem --- Compressing Archive ---
cd ZenLib_MSVC
..\..\..\Shared\Binary\7z a -r -t7z ..\ZenLib_MSVC.7z *.*
cd ..

rem --- Clean up ---
rmdir ZenLib_MSVC /S /Q