# HG changeset patch # User John Donoghue # Date 1580304890 18000 # Node ID 9057112edb8e26e6880cbddabcaa43acaafcc841 # Parent 6a8780aca793a7730671fa7262c55d3560d45be9 * installer-files/post-install.bat: create qt.conf (Bug #57679) diff -r 6a8780aca793 -r 9057112edb8e installer-files/post-install.bat --- 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 ..."