GP-1050: Removing backslash from SUPPORT_DIR

This commit is contained in:
Ryan Kurtz 2021-06-16 09:29:35 -04:00
parent c98e6fe3bb
commit a1229a1e56

View file

@ -31,13 +31,15 @@ setlocal enabledelayedexpansion
set DOUBLE_CLICKED=n set DOUBLE_CLICKED=n
for /f "tokens=2" %%# in ("%cmdcmdline%") do if /i "%%#" equ "/c" set DOUBLE_CLICKED=y for /f "tokens=2" %%# in ("%cmdcmdline%") do if /i "%%#" equ "/c" set DOUBLE_CLICKED=y
:: Sets SUPPORT_DIR to the directory that contains this file (ends with '\') :: Sets SUPPORT_DIR to the directory that contains this file (launch.bat).
:: SUPPORT_DIR will not contain a trailing slash.
:: ::
:: '% ~' dereferences the value in param 0 :: '% ~' dereferences the value in param 0
:: 'd' - drive :: 'd' - drive
:: 'p' - path (without filename) :: 'p' - path (without filename)
:: '~0,-1' - removes trailing \
set "SUPPORT_DIR=%~dp0" set "SUPPORT_DIR=%~dp0"
set "SUPPORT_DIR=%SUPPORT_DIR:~0,-1%"
:: ::
:: Parse arguments :: Parse arguments
:: ::
@ -63,7 +65,7 @@ goto showUsage
:: ::
:: Production Environment :: Production Environment
:: ::
set "INSTALL_DIR=%SUPPORT_DIR%.." set "INSTALL_DIR=%SUPPORT_DIR%\.."
set "CPATH=%INSTALL_DIR%\Ghidra\Framework\Utility\lib\Utility.jar" set "CPATH=%INSTALL_DIR%\Ghidra\Framework\Utility\lib\Utility.jar"
set "LS_CPATH=%SUPPORT_DIR%\LaunchSupport.jar" set "LS_CPATH=%SUPPORT_DIR%\LaunchSupport.jar"
set "DEBUG_LOG4J=%SUPPORT_DIR%\debug.log4j.xml" set "DEBUG_LOG4J=%SUPPORT_DIR%\debug.log4j.xml"