Skip to content

Commit

Permalink
find-tools.batの環境変数クリア機能を関数化して内部から呼べるようにする
Browse files Browse the repository at this point in the history
  • Loading branch information
berryzplus committed Jan 10, 2022
1 parent afaf9e5 commit 3485c28
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions tools/find-tools.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,7 @@
setlocal

if "%1" equ "clear" (
endlocal
set CMD_GIT=
set CMD_7Z=
set CMD_HHC=
set CMD_ISCC=
set CMD_VSWHERE=
set CMD_MSBUILD=
set CMD_CMAKE=
set CMD_NINJA=
set CMD_LEPROC=
set CMD_PYTHON=
set NUM_VSVERSION=
set CMAKE_G_PARAM=
set FIND_TOOLS_CALLED=
call :clear_variables
echo find-tools.bat has been cleared
exit /b
) else if "%~1" neq "" (
Expand Down Expand Up @@ -66,6 +53,23 @@ endlocal ^
set FIND_TOOLS_CALLED=1
exit /b

:clear_variables
endlocal
set CMD_GIT=
set CMD_7Z=
set CMD_HHC=
set CMD_ISCC=
set CMD_VSWHERE=
set CMD_MSBUILD=
set CMD_CMAKE=
set CMD_NINJA=
set CMD_LEPROC=
set CMD_PYTHON=
set NUM_VSVERSION=
set CMAKE_G_PARAM=
set FIND_TOOLS_CALLED=
exit /b

:Git
set APPDIR=Git\Cmd
set PATH2=%PATH%;%ProgramFiles%\%APPDIR%\;%ProgramFiles(x86)%\%APPDIR%\;%ProgramW6432%\%APPDIR%\;
Expand Down

0 comments on commit 3485c28

Please sign in to comment.