@echo off

rem 0. Recreate lib folder
if exist lib rmdir lib /s /q
mkdir lib

@echo 1. Copy m2 libraries (m2-core, m2-components, etc.)
rem (https://dev.sdi-solution.ru:434/!/#Skolkovo/view/head/Sources/trunk/sdi-web-client/projects/m2-core)
rem (https://dev.sdi-solution.ru:434/!/#Skolkovo/view/head/Sources/trunk/sdi-web-client/projects/m2-components)
copy ..\..\sdi-web-client\projects\m2-core\dist\m2-core-25.1.0.tgz .\lib
copy ..\..\sdi-web-client\projects\m2-components\dist\m2-components-25.1.0.tgz .\lib

@echo 2. Copy patched 3rd party libraries
rem (https://dev.sdi-solution.ru:434/!/#Skolkovo/view/head/Sources/trunk/sdi-web-client-patch/lib)
xcopy ..\..\sdi-web-client-patch\lib .\lib\3rd-party /y /i

pause
