Mercurial > mxe-octave
changeset 5281:9057112edb8e
* installer-files/post-install.bat: create qt.conf (Bug #57679)
author | John Donoghue |
---|---|
date | Wed, 29 Jan 2020 08:34:50 -0500 |
parents | 6a8780aca793 |
children | 40f2726a5981 |
files | installer-files/post-install.bat |
diffstat | 1 files changed, 18 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/installer-files/post-install.bat Tue Jan 28 16:37:07 2020 -0500 +++ b/installer-files/post-install.bat Wed Jan 29 08:34:50 2020 -0500 @@ -15,11 +15,27 @@ set OCTAVE_HOME=%ROOT_DIR% ) else ( if %MSYSTEM%==MINGW32 ( - set OCTAVE_HOME=%ROOT_DIR%\mingw32 + set OCTAVE_HOME=%ROOT_DIR%mingw32 ) else ( - set OCTAVE_HOME=%ROOT_DIR%\mingw64 + set OCTAVE_HOME=%ROOT_DIR%mingw64 )) +Rem QT subdir path +IF EXIST "%OCTAVE_HOME%\qt5" ( + set QT_SUBDIR=qt5/ +) ELSE ( + set QT_SUBDIR= +) + +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% Rem run bash to to regitser the initial envorinment echo "Setting up MSYS system ..."