@echo off

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


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

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

rem --- Copying : Library ---
copy BCB\Library\ZenLib.lib ZenLib_BCB\

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


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

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