-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #211 from ISISComputingGroup/add_standalone_isisicp
add standalone isisicp installer
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
setlocal EnableDelayedExpansion | ||
set "SOURCE=\\isis.cclrc.ac.uk\inst$\Kits$\CompGroup\ICP\Releases" | ||
call "%~dp0define_latest_genie_python.bat" | ||
IF %errorlevel% neq 0 goto ERROR | ||
|
||
git --version | ||
|
||
IF %errorlevel% neq 0 ( | ||
echo No installation of Git found on machine. Please download Git from https://git-scm.com/downloads before proceeding. | ||
goto ERROR | ||
) | ||
|
||
call "%LATEST_PYTHON%" "%~dp0IBEX_upgrade.py" --release_dir "%SOURCE%" --release_suffix "%SUFFIX%" --confirm_step update_icp | ||
IF %errorlevel% neq 0 goto ERROR | ||
call "%~dp0remove_genie_python.bat" %LATEST_PYTHON_DIR% | ||
|
||
exit /b 0 | ||
|
||
:ERROR | ||
set errcode = %ERRORLEVEL% | ||
call "%~dp0remove_genie_python.bat" %LATEST_PYTHON_DIR% | ||
EXIT /b !errcode! |