-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathall.bat
More file actions
36 lines (30 loc) · 722 Bytes
/
Copy pathall.bat
File metadata and controls
36 lines (30 loc) · 722 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
26
27
28
29
30
31
32
33
34
35
36
@echo off
if "%1" == "rel" (
set "barg=rel"
shift
)
for %%i in ("%~dp0") do SET "all_dir=%%~fi"
call <NUL "%all_dir%\build.bat" %barg% %*
if errorlevel 1 (
call:unset_all
exit /b 1
)
for %%i in ("%~dp0") do SET "all_dir=%%~fi"
call "%all_dir%\senv.bat"
%_task% "Start project '%project_dir_name%' run"
call <NUL "%all_dir%\run.bat" %*
if errorlevel 1 (
call:unset_all
exit /b 1
)
call:unset_all
goto:eof
:unset_all
for %%i in ("%~dp0") do SET "all_dir=%%~fi"
call "%all_dir%\senv.bat" unset
set "all_dir="
set "barg="
goto:eof
:call_echos_stack
if not defined ECHOS_STACK ( set "CURRENT_SCRIPT=%~nx0" & goto:eof ) else ( call "%project_dir%\tools\batcolors\echos.bat" :stack %~nx0 )
goto:eof