forked from TrustedComputingGroup/TPM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.cmd
More file actions
25 lines (22 loc) · 686 Bytes
/
Copy pathinit.cmd
File metadata and controls
25 lines (22 loc) · 686 Bytes
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
@echo off
@REM -- this script provides some environment initialization
@REM -- it sets the environment variable ROOT to the folder containing
@REM -- init.cmd. It also sets INIT to the first command line parameter
@REM -- and calls a personal initialization script if it exists.
set INIT=
if "%1" NEQ "" (
set INIT=%1
)
if [%INIT%] NEQ [] (
echo captured developer dir [%INIT%]
else (
echo no developer dir given
)
echo -- get root folder (containing init.cmd)
FOR %%I IN (%~dp0\TPMCmd\..) DO @SET ROOT=%%~fI
cd %ROOT%
@REM call developer setenv.cmd if provided
if EXIST %INIT%\Setenv.cmd (
echo Setting environment from %INIT%\Setenv.cmd
call %INIT%\Setenv.cmd
)