Mercurial > mxe-octave
changeset 5648:74d9b433846a
post-install.bat: Use double-quotes to allow for spaces in path (bug #59923).
* installer-files/post-install.bat: Use double-quotes to allow for spaces in the
path where Octave is installed.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sun, 31 Jan 2021 16:44:31 +0100 |
parents | d7f944a99e29 |
children | 27b4f385c45d |
files | installer-files/post-install.bat |
diffstat | 1 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/installer-files/post-install.bat Fri Jan 29 08:03:44 2021 -0500 +++ b/installer-files/post-install.bat Sun Jan 31 16:44:31 2021 +0100 @@ -7,9 +7,9 @@ set MSYSDIR=%ROOT_DIR% set MSYSTEM=MSYS -if NOT EXIST %ROOT_DIR%\bin\msys-1.0.dll set MSYSDIR=%ROOT_DIR%\usr -if EXIST %ROOT_DIR%\mingw32\bin\octave.bat set MSYSTEM=MINGW32 -if EXIST %ROOT_DIR%\mingw64\bin\octave.bat set MSYSTEM=MINGW64 +if NOT EXIST "%ROOT_DIR%\bin\msys-1.0.dll" set MSYSDIR=%ROOT_DIR%\usr +if EXIST "%ROOT_DIR%\mingw32\bin\octave.bat" set MSYSTEM=MINGW32 +if EXIST "%ROOT_DIR%\mingw64\bin\octave.bat" set MSYSTEM=MINGW64 if %MSYSTEM%==MSYS ( set OCTAVE_HOME=%ROOT_DIR% @@ -29,15 +29,15 @@ Rem Create qt.conf set QT_CONF=%OCTAVE_HOME%\bin\qt.conf -echo [Paths] > %QT_CONF% -echo Prefix=%OCTAVE_HOME:\=/% >> %QT_CONF% -echo Documentation=%QT_SUBDIR%doc >> %QT_CONF% -echo Headers=%QT_SUBDIR%include >> %QT_CONF% -echo Libraries=%QT_SUBDIR%libs >> %QT_CONF% -echo Plugins=%QT_SUBDIR%plugins >> %QT_CONF% -echo Translations=%QT_SUBDIR%translations >> %QT_CONF% +echo [Paths] > "%QT_CONF%" +echo Prefix="%OCTAVE_HOME:\=/%" >> "%QT_CONF%" +echo Documentation=%QT_SUBDIR%doc >> "%QT_CONF%" +echo Headers=%QT_SUBDIR%include >> "%QT_CONF%" +echo Libraries=%QT_SUBDIR%libs >> "%QT_CONF%" +echo Plugins=%QT_SUBDIR%plugins >> "%QT_CONF%" +echo Translations=%QT_SUBDIR%translations >> "%QT_CONF%" -Rem run bash to to regitser the initial envorinment +Rem Run bash to register the initial environment echo "Setting up MSYS system ..." "%MSYSDIR%\bin\bash.exe" --login -c echo echo "Updating fc-cache (may take a while) ..."