Updates
This commit is contained in:
+13
-6
@@ -24,6 +24,7 @@ set rad_update_exe=update_trunk.bat
|
||||
set remedybg_dir=%root_dir%\RemedyBG
|
||||
set remedybg_exe=remedybg.exe
|
||||
set virustotal_url=https://www.virustotal.com/gui/file
|
||||
set rust_dir=%userprofile%\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin
|
||||
|
||||
:: Argument parsing ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
:: Remove the first argument which is the command (e.g. raddbg or radlink)
|
||||
@@ -39,6 +40,7 @@ if "%option%"=="raddbg" set "exe_dir=%raddbg_dir%" && set path=%exe_
|
||||
if "%option%"=="raddbg_env" endlocal && set path=%raddbg_dir%;%path% && goto :eof
|
||||
if "%option%"=="radlink" set "exe_dir=%radlink_dir%" && set path=%exe_dir%;%path% && set cmd_line=!exe_dir!\%radlink_exe%
|
||||
if "%option%"=="radlink_env" endlocal && set path=%radlink_dir%;%path% && goto :eof
|
||||
if "%option%"=="rust_env" endlocal && set path=%rsut_dir%;%path% && goto :eof
|
||||
if "%option%"=="remedybg" set "exe_dir=%remedybg_dir%\%1" && set path=%exe_dir%;%path% && set cmd_line=start /B !exe_dir!\%remedybg_exe% && shift
|
||||
if "%option%"=="virustotal" for /f "delims=" %%a in ('powershell -Command "(Get-FileHash \"%1\" -Algorithm SHA256).Hash"') do set virustotal_hash=%%a && shift
|
||||
if "%option%"=="virustotal" set cmd_line=start /B %virustotal_url%/%virustotal_hash%
|
||||
@@ -55,14 +57,13 @@ if "%option%"=="help" (
|
||||
echo USAGE: dev [option] [args...]
|
||||
echo.
|
||||
echo NOTES:
|
||||
echo Commands suffixed with '_env' augment the system path with the path to the tool for the
|
||||
echo current shell session.
|
||||
echo Commands augment the system path with the path to the tool for the current shell session.
|
||||
echo.
|
||||
echo OPTIONS:
|
||||
echo cmake [version] [exe] CMake build system: '%cmake_dir%\[version]\[exe] %cmake_args%'
|
||||
echo cmake [version] [exe] CMake build system: 'set PATH=%cmake_dir%\[version]\[exe];%%PATH%% %cmake_args%'
|
||||
echo Versions: !cmake_versions!
|
||||
echo.
|
||||
echo clang [version] [exe] CLANG compiler: '%clang_dir%\[version]\[exe] %clang_args%'
|
||||
echo clang [version] [exe] CLANG compiler: 'set PATH=%clang_dir%\[version]\[exe];%%PATH%% %clang_args%'
|
||||
echo Example: 'dev clang 18.1.4 clang++.exe --help'
|
||||
echo Versions: !clang_versions!
|
||||
echo.
|
||||
@@ -75,14 +76,20 @@ if "%option%"=="help" (
|
||||
echo Versions: !node_versions!
|
||||
echo.
|
||||
echo raddbg RAD debugger: '%raddbg_dir%\%raddbg_exe% %raddbg_args%'
|
||||
echo raddbg_env [cmd...] '%raddbg_dir%;[PATH]'
|
||||
echo raddbg_env Add RAD debugger to PATH env: 'set PATH=%raddbg_dir%;%%PATH%%'
|
||||
echo radlink RAD linker: '%radlink_dir%\%radlink_exe%'
|
||||
echo radlink_env [cmd...] '%radlink_dir%;[PATH]'
|
||||
echo radlink_env Add RAD linker to PATH env: 'set PATH=%radlink_dir%;%%PATH%%'
|
||||
echo rad_update Update the RAD linker and debugger: '%rad_update_dir%\%rad_update_exe%'
|
||||
echo.
|
||||
echo remedybg [version] C/C++ debugger: '%remedybg_dir%\%remedybg_exe%'
|
||||
echo Versions: !remedybg_versions!
|
||||
echo.
|
||||
if exist "!rust_dir!\cargo.exe" (
|
||||
echo rust_env Add Rust to PATH env: 'set PATH=!rust_dir!;%%PATH%%'
|
||||
echo.
|
||||
)
|
||||
echo virustotal [file] Lookup file SHA256 hash on VirusTotal: '%virustotal_url%/[file]'
|
||||
|
||||
goto :eof
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user