30 lines
759 B
Batchfile
30 lines
759 B
Batchfile
@echo off
|
|
chcp 65001 > nul
|
|
@echo off
|
|
|
|
|
|
setlocal
|
|
echo @echo off > "%~dp0/deactivate_conanbuildenv-debug-x86_64.bat"
|
|
echo echo Restoring environment for conanbuildenv-debug-x86_64.bat >> "%~dp0/deactivate_conanbuildenv-debug-x86_64.bat"
|
|
for %%v in (PATH) do (
|
|
set foundenvvar=
|
|
for /f "delims== tokens=1,2" %%a in ('set') do (
|
|
if /I "%%a" == "%%v" (
|
|
echo set "%%a=%%b">> "%~dp0/deactivate_conanbuildenv-debug-x86_64.bat"
|
|
set foundenvvar=1
|
|
)
|
|
)
|
|
if not defined foundenvvar (
|
|
echo set %%v=>> "%~dp0/deactivate_conanbuildenv-debug-x86_64.bat"
|
|
)
|
|
)
|
|
endlocal
|
|
|
|
|
|
|
|
|
|
if defined PATH (
|
|
set "PATH=C:\Qt\Qt5.14.2\Tools\mingw730_64\bin;%PATH%"
|
|
) else (
|
|
set "PATH=C:\Qt\Qt5.14.2\Tools\mingw730_64\bin"
|
|
) |