-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall.cmd
27 lines (23 loc) · 1.19 KB
/
install.cmd
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
SETLOCAL ENABLEEXTENSIONS
@ECHO ---------------------
@ECHO Arguments:
@ECHO Target directory = %1
@ECHO ---------------------
SET TARGETDIR=%1
@REM Create macos/ subdirectory including any parent directories (extensions are enabled)
IF NOT EXIST "%TARGETDIR%\macos" MKDIR "%TARGETDIR%\macos"
@REM Create unix/ subdirectory including any parent directories (extensions are enabled)
IF NOT EXIST "%TARGETDIR%\unix" MKDIR "%TARGETDIR%\unix"
@REM Copy in binary mode (/B) so that CRLF is not added
COPY /Y /B META "%TARGETDIR%"
IF %ERRORLEVEL% NEQ 0 (Echo Error during COPY &Exit /b 1)
COPY /Y /B template.dkmlroot "%TARGETDIR%"
IF %ERRORLEVEL% NEQ 0 (Echo Error during COPY &Exit /b 1)
COPY /Y /B macos\brewbundle.sh "%TARGETDIR%\macos"
IF %ERRORLEVEL% NEQ 0 (Echo Error during COPY &Exit /b 1)
COPY /Y /B unix\_common_tool.sh "%TARGETDIR%\unix"
IF %ERRORLEVEL% NEQ 0 (Echo Error during COPY &Exit /b 1)
COPY /Y /B unix\_within_dev.sh "%TARGETDIR%\unix"
IF %ERRORLEVEL% NEQ 0 (Echo Error during COPY &Exit /b 1)
COPY /Y /B unix\crossplatform-functions.sh "%TARGETDIR%\unix"
IF %ERRORLEVEL% NEQ 0 (Echo Error during COPY &Exit /b 1)