aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/check_env.bat
blob: f5f63a886152fc51649776b9e6a87e6564c2c343 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@rem Copyright 2015 Egor Tensin <Egor.Tensin@gmail.com>
@rem This file is licensed under the terms of the MIT License.
@rem See LICENSE.txt for details.

@setlocal enabledelayedexpansion
@echo off

if [%root%] == [] goto :env_not_set
if [%bin_root%] == [] goto :env_not_set
if [%lib_root%] == [] goto :env_not_set
if [%src_root%] == [] goto :env_not_set

exit /b 0

:env_not_set
echo Error: either %%root%%, %%bin_root%%, %%lib_root%% or %%src_root%% are not set ^(perhaps you forgot to call setenv.bat^)
exit /b 1