Skip to content

Commit 40f7b87

Browse files
committed
[win_build.bat] Check valid dependency directories
1 parent be75ae0 commit 40f7b87

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

win_build.bat

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,21 @@ REM clone nix source from https://github.com/G-Node/nix
66
SET NIX_ROOT=c:\work\nix
77
SET NIX_MX_ROOT=c:\work\nix-mx
88

9+
IF NOT EXIST %NIX_DEP% (
10+
ECHO Please provide valid nix dependencies.
11+
EXIT /b
12+
)
13+
14+
IF NOT EXIST %NIX_ROOT% (
15+
ECHO Please provide valid nix root directory.
16+
EXIT /b
17+
)
18+
19+
IF NOT EXIST %NIX_MX_ROOT% (
20+
ECHO Please provide valid nix-mx root directory.
21+
EXIT /b
22+
)
23+
924
ECHO Use only build types "Release" or "Debug"
1025
IF "%1" == "Debug" (SET BUILD_TYPE=Debug)
1126
IF "%BUILD_TYPE%" == "" (SET BUILD_TYPE=Release)

0 commit comments

Comments
 (0)