Skip to content

Commit 43a6566

Browse files
committed
remove endlocals as they unset lots of things that are needed later in the script
1 parent d4cb0fc commit 43a6566

File tree

8 files changed

+0
-26
lines changed

8 files changed

+0
-26
lines changed

installation_and_upgrade/_activate_venv.bat

Lines changed: 0 additions & 4 deletions
This file was deleted.

installation_and_upgrade/instrument_deploy.bat

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ IF EXIST "C:\Instrument\Apps\EPICS" (
4040
call python "%~dp0IBEX_upgrade.py" --release_dir "%SOURCE%" --release_suffix "%SUFFIX%" --server_arch %SERVER_ARCH% --confirm_step instrument_deploy_pre_stop
4141
IF !errorlevel! neq 0 exit /b !errorlevel!
4242
start /wait cmd /c "%STOP_IBEX%"
43-
ENDLOCAL
4443
)
4544

4645
REM Copy the pydev command history file to temp so it can be copied back in after deploy (otherwise it is overwritten)
@@ -79,20 +78,11 @@ if "%DETECT_OLD_GALIL%" == "YES" (
7978
)
8079
)
8180

82-
REM stop_ibex_server calls config_env which means we have to reactivate our venv
83-
call "%~dp0_activate_venv.bat"
84-
call "%~dp0set_epics_ca_addr_list.bat"
85-
8681
call python "%~dp0IBEX_upgrade.py" --release_dir "%SOURCE%" --release_suffix "%SUFFIX%" --server_arch %SERVER_ARCH% --confirm_step instrument_deploy_main
8782
IF %errorlevel% neq 0 exit /b %errorlevel%
88-
ENDLOCAL
8983

9084
start /i /wait cmd /c "%START_IBEX%"
9185

92-
REM start_ibex_server calls config_env which means we have to reactivate our venv
93-
call "%~dp0_activate_venv.bat"
94-
call "%~dp0set_epics_ca_addr_list.bat"
95-
9686
call python "%~dp0IBEX_upgrade.py" --release_dir "%SOURCE%" --release_suffix "%SUFFIX%" --server_arch %SERVER_ARCH% --confirm_step instrument_deploy_post_start
9787
call rmdir /s /q %UV_TEMP_VENV%
9888

installation_and_upgrade/instrument_install.bat

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,8 @@ set "STOP_IBEX=C:\Instrument\Apps\EPICS\stop_ibex_server"
3535
set "START_IBEX=C:\Instrument\Apps\EPICS\start_ibex_server"
3636
IF EXIST "C:\Instrument\Apps\EPICS" (start /wait cmd /c "%STOP_IBEX%")
3737

38-
39-
REM stop_ibex_server calls config_env which means we have to reactivate our venv
40-
call "%~dp0_activate_venv.bat"
41-
call "%~dp0set_epics_ca_addr_list.bat"
42-
4338
call python "%~dp0IBEX_upgrade.py" --release_dir "%SOURCE%" --release_suffix "%SUFFIX%" --server_arch %SERVER_ARCH% --confirm_step instrument_install
4439
if %errorlevel% neq 0 goto ERROR
45-
ENDLOCAL
4640

4741
start /wait cmd /c "%START_IBEX%"
4842

installation_and_upgrade/instrument_install_latest_build_only.bat

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ if %errorlevel% neq 0 goto ERROR
2020
set "STOP_IBEX=C:\Instrument\Apps\EPICS\stop_ibex_server.bat"
2121
IF EXIST "C:\Instrument\Apps\EPICS" (
2222
call "%STOP_IBEX%"
23-
REM stop_ibex_server calls config_env which means we have to reactivate our venv
24-
call "%~dp0_activate_venv.bat"
2523
) else (
2624
REM in case one has been left around running in the background
2725
taskkill /f /im caRepeater.exe

installation_and_upgrade/upgrade_mysql.bat

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ set "START_IBEX=C:\Instrument\Apps\EPICS\start_ibex_server"
1111

1212
start /wait cmd /c "%STOP_IBEX%"
1313

14-
call "%~dp0_activate_venv.bat"
1514
call python -u "%~dp0IBEX_upgrade.py" --release_dir "%SOURCE%" --release_suffix "%SUFFIX%" --confirm_step force_upgrade_mysql
1615

1716
IF %errorlevel% neq 0 (

installation_and_upgrade/vhd_build.bat

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ IF EXIST "C:\Instrument\Apps\EPICS\stop_ibex_server.bat" (
1212
start /wait cmd /c "C:\Instrument\Apps\EPICS\stop_ibex_server.bat"
1313
)
1414

15-
call "%~dp0_activate_venv.bat"
1615
call "%LATEST_PYTHON%" "%~dp0IBEX_upgrade.py" --kits_icp_dir "%KITS_ICP_PATH%" create_vhds --quiet --no_log_to_var
1716
IF %ERRORLEVEL% NEQ 0 (
1817
set errcode = %ERRORLEVEL%

installation_and_upgrade/vhd_build_force_cleanup.bat

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ IF EXIST "C:\Instrument\Apps\EPICS\stop_ibex_server.bat" (
1111
start /wait cmd /c "C:\Instrument\Apps\EPICS\stop_ibex_server.bat"
1212
)
1313

14-
call "%~dp0_activate_venv.bat"
1514
call python "%~dp0IBEX_upgrade.py" --kits_icp_dir "%KITS_ICP_PATH%" request_dismount_vhds --quiet --no_log_to_var
1615

1716
IF %ERRORLEVEL% NEQ 0 (

installation_and_upgrade/vhd_build_release.bat

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ IF EXIST "C:\Instrument\Apps\EPICS\stop_ibex_server.bat" (
1111
start /wait cmd /c "C:\Instrument\Apps\EPICS\stop_ibex_server.bat"
1212
)
1313

14-
call "%~dp0_activate_venv.bat"
1514
call python -u "%~dp0IBEX_upgrade.py" --release_dir "%SOURCE%" create_vhds --quiet --no_log_to_var
1615

1716
IF %ERRORLEVEL% NEQ 0 (

0 commit comments

Comments
 (0)