Skip to content

Commit 634efe1

Browse files
committed
Rebuild.bat returns 0 on success. Added more error checking.
1 parent 9d282f9 commit 634efe1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

winbin/rebuild.bat

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@ if not exist chenard.sln (
88

99
if not defined VCINSTALLDIR (
1010
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
11+
echo Build environment set for Visual Studio 2015.
1112
)
1213

1314
if not exist logs (
1415
mkdir logs
16+
if not exist logs (
17+
echo ERROR: cannot create 'logs' directory.
18+
exit /b 1
19+
)
1520
echo Created 'logs' directory.
1621
)
1722

@@ -25,3 +30,6 @@ for %%p in (Win32 x64) do (
2530
)
2631
)
2732
)
33+
34+
echo Successful rebuild of all Chenard executables.
35+
exit /b 0

0 commit comments

Comments
 (0)