-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall.bat
38 lines (31 loc) · 1007 Bytes
/
install.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@echo off
echo Library installer script
echo ------------------------
echo[
set LIBRARY_NAME=NonRigidICP
set VERSION=1.8.1
if "%MATLAB_LIBS%" == "" (
echo Error: The environment variable 'MATLAB_LIBS' is not set.
pause
exit -1
) else (
echo Installing "%LIBRARY_NAME%-%VERSION%" in "%MATLAB_LIBS%".
echo Close this window to abort the installation.
timeout /t 15
if not exist "%MATLAB_LIBS%" (
echo Creating folder "%MATLAB_LIBS%"...
mkdir "%MATLAB_LIBS%"
)
if not exist "%MATLAB_LIBS%\%LIBRARY_NAME%-%VERSION%" (
echo Creating folder "%LIBRARY_NAME%-%VERSION%" in "%MATLAB_LIBS%"...
mkdir "%MATLAB_LIBS%\%LIBRARY_NAME%-%VERSION%"
)
echo Copying the data...
if exist exclude.txt rm exclude.txt
echo %~dp0.git >> exclude.txt
echo %~dp0src\codegen >> exclude.txt
echo exclude.txt >> exclude.txt
xcopy . "%MATLAB_LIBS%\%LIBRARY_NAME%-%VERSION%\" /f /y /e /EXCLUDE:exclude.txt
rm exclude.txt
pause
)