--- /dev/null
+@echo off
+
+echo ##########################################################################
+echo MeshGems %VERSION%
+echo ##########################################################################
+
+if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
+if NOT exist "%PRODUCT_INSTALL%\bin" mkdir %PRODUCT_INSTALL%\bin
+if NOT exist "%PRODUCT_INSTALL%\lib" mkdir %PRODUCT_INSTALL%\lib
+if NOT exist "%PRODUCT_INSTALL%\include" mkdir %PRODUCT_INSTALL%\include
+if NOT exist "%PRODUCT_INSTALL%\Docs" mkdir %PRODUCT_INSTALL%\Docs
+
+REM clean BUILD directory
+if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR%
+mkdir %BUILD_DIR%
+
+cd %SOURCE_DIR%
+
+set SRC_FOLDER=Win10_64_VC16
+cd Products
+
+echo PRODUCT_INSTALL = %PRODUCT_INSTALL%
+
+REM
+xcopy include\* %PRODUCT_INSTALL%\include /E /I /Q /Y
+if NOT %ERRORLEVEL% == 0 (
+ echo ERROR on copying include
+ exit 1
+)
+
+echo SRC_FOLDER = %SRC_FOLDER%
+echo.
+echo running command: xcopy lib\%SRC_FOLDER%\* %PRODUCT_INSTALL%\lib /E /I /Q /Y
+xcopy lib\%SRC_FOLDER%\* %PRODUCT_INSTALL%\lib /E /I /Q /Y
+if NOT %ERRORLEVEL% == 0 (
+ echo ERROR on copying lib
+ exit 2
+)
+
+REM
+echo.
+echo running command: bin\%SRC_FOLDER%\* %PRODUCT_INSTALL%\bin /E /I /Q /Y
+xcopy bin\%SRC_FOLDER%\* %PRODUCT_INSTALL%\bin /E /I /Q /Y
+if NOT %ERRORLEVEL% == 0 (
+ echo ERROR on copying bin
+ exit 3
+)
+
+REM
+echo.
+xcopy Docs\* %PRODUCT_INSTALL%\Docs /E /I /Q /Y
+if NOT %ERRORLEVEL% == 0 (
+ echo ERROR on copying Docs
+ exit 4
+)
+
+echo.
+echo ########## END
@echo off\r
\r
echo ##########################################################################\r
-echo MeshGems $VERSION\r
+echo MeshGems %VERSION%\r
echo ##########################################################################\r
\r
if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%\r
\r
set SRC_FOLDER_VC14=Win7_64_VC14\r
set SRC_FOLDER_VC15=Win7_64_VC15\r
-set SRC_FOLDER_VC16=Win10_64_VC16\r
cd DISTENE\MeshGems-*\Products\r
\r
echo PRODUCT_INSTALL = %PRODUCT_INSTALL%\r
set SRC_FOLDER=%SRC_FOLDER_VC14%\r
)\r
\r
-if exist "lib\%SRC_FOLDER_VC16%" (\r
- set SRC_FOLDER=%SRC_FOLDER_VC16%\r
-)\r
-\r
echo SRC_FOLDER = %SRC_FOLDER%\r
echo. \r
echo running command: xcopy lib\%SRC_FOLDER%\* %PRODUCT_INSTALL%\lib /E /I /Q /Y\r