markus / obfuscarBuild.Bat @ ea8a8440
이력 | 보기 | 이력해설 | 다운로드 (465 Bytes)
1 |
@ECHO OFF |
---|---|
2 |
SETLOCAL |
3 | |
4 |
SET packagesPath=%1packages |
5 |
echo "package Path : %packagesPath%" |
6 | |
7 |
FOR /R %packagesPath% %%G IN (Obfuscar.Console.exe) DO ( |
8 |
IF EXIST %%G ( |
9 |
SET TOOLPATH=%%G |
10 |
GOTO FOUND |
11 |
) |
12 |
) |
13 | |
14 | |
15 |
IF '%TOOLPATH%'=='' GOTO NOTFOUND |
16 | |
17 |
:FOUND |
18 | |
19 |
ECHO "TOOLPATH : %TOOLPATH%" |
20 | |
21 |
set targetPath=%2 |
22 | |
23 |
set targetPath=%targetPath:~0,-1% |
24 |
echo "targetPath : %targetPath%" |
25 | |
26 |
cd %targetPath% |
27 | |
28 |
%TOOLPATH% -s %3 |
29 |
GOTO :EOF |
30 | |
31 |
:NOTFOUND |
32 |
ECHO nunit-console not found. |
33 |
EXIT /B 1 |