Mercurial > mxe-octave
annotate installer-files/post-install.bat @ 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 | 302be3cb0135 |
children | 74d9b433846a |
rev | line source |
---|---|
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
1 @echo off |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
2 Rem Run on initial install /update |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
3 set ROOT_DIR=%~dp0 |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
4 Rem Convert to 8.3 format so we don't have to worry about spaces. |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
5 for %%I in ("%ROOT_DIR%") do set ROOT_DIR=%%~sI |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
6 |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
7 set MSYSDIR=%ROOT_DIR% |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
8 set MSYSTEM=MSYS |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
9 |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
10 if NOT EXIST %ROOT_DIR%\bin\msys-1.0.dll set MSYSDIR=%ROOT_DIR%\usr |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
11 if EXIST %ROOT_DIR%\mingw32\bin\octave.bat set MSYSTEM=MINGW32 |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
12 if EXIST %ROOT_DIR%\mingw64\bin\octave.bat set MSYSTEM=MINGW64 |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
13 |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
14 if %MSYSTEM%==MSYS ( |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
15 set OCTAVE_HOME=%ROOT_DIR% |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
16 ) else ( |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
17 if %MSYSTEM%==MINGW32 ( |
5281
9057112edb8e
* installer-files/post-install.bat: create qt.conf (Bug #57679)
John Donoghue
parents:
5221
diff
changeset
|
18 set OCTAVE_HOME=%ROOT_DIR%mingw32 |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
19 ) else ( |
5281
9057112edb8e
* installer-files/post-install.bat: create qt.conf (Bug #57679)
John Donoghue
parents:
5221
diff
changeset
|
20 set OCTAVE_HOME=%ROOT_DIR%mingw64 |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
21 )) |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
22 |
5281
9057112edb8e
* installer-files/post-install.bat: create qt.conf (Bug #57679)
John Donoghue
parents:
5221
diff
changeset
|
23 Rem QT subdir path |
9057112edb8e
* installer-files/post-install.bat: create qt.conf (Bug #57679)
John Donoghue
parents:
5221
diff
changeset
|
24 IF EXIST "%OCTAVE_HOME%\qt5" ( |
9057112edb8e
* installer-files/post-install.bat: create qt.conf (Bug #57679)
John Donoghue
parents:
5221
diff
changeset
|
25 set QT_SUBDIR=qt5/ |
9057112edb8e
* installer-files/post-install.bat: create qt.conf (Bug #57679)
John Donoghue
parents:
5221
diff
changeset
|
26 ) ELSE ( |
9057112edb8e
* installer-files/post-install.bat: create qt.conf (Bug #57679)
John Donoghue
parents:
5221
diff
changeset
|
27 set QT_SUBDIR= |
9057112edb8e
* installer-files/post-install.bat: create qt.conf (Bug #57679)
John Donoghue
parents:
5221
diff
changeset
|
28 ) |
9057112edb8e
* installer-files/post-install.bat: create qt.conf (Bug #57679)
John Donoghue
parents:
5221
diff
changeset
|
29 |
9057112edb8e
* installer-files/post-install.bat: create qt.conf (Bug #57679)
John Donoghue
parents:
5221
diff
changeset
|
30 Rem Create qt.conf |
9057112edb8e
* installer-files/post-install.bat: create qt.conf (Bug #57679)
John Donoghue
parents:
5221
diff
changeset
|
31 set QT_CONF=%OCTAVE_HOME%\bin\qt.conf |
9057112edb8e
* installer-files/post-install.bat: create qt.conf (Bug #57679)
John Donoghue
parents:
5221
diff
changeset
|
32 echo [Paths] > %QT_CONF% |
9057112edb8e
* installer-files/post-install.bat: create qt.conf (Bug #57679)
John Donoghue
parents:
5221
diff
changeset
|
33 echo Prefix=%OCTAVE_HOME:\=/% >> %QT_CONF% |
9057112edb8e
* installer-files/post-install.bat: create qt.conf (Bug #57679)
John Donoghue
parents:
5221
diff
changeset
|
34 echo Documentation=%QT_SUBDIR%doc >> %QT_CONF% |
9057112edb8e
* installer-files/post-install.bat: create qt.conf (Bug #57679)
John Donoghue
parents:
5221
diff
changeset
|
35 echo Headers=%QT_SUBDIR%include >> %QT_CONF% |
9057112edb8e
* installer-files/post-install.bat: create qt.conf (Bug #57679)
John Donoghue
parents:
5221
diff
changeset
|
36 echo Libraries=%QT_SUBDIR%libs >> %QT_CONF% |
9057112edb8e
* installer-files/post-install.bat: create qt.conf (Bug #57679)
John Donoghue
parents:
5221
diff
changeset
|
37 echo Plugins=%QT_SUBDIR%plugins >> %QT_CONF% |
9057112edb8e
* installer-files/post-install.bat: create qt.conf (Bug #57679)
John Donoghue
parents:
5221
diff
changeset
|
38 echo Translations=%QT_SUBDIR%translations >> %QT_CONF% |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
39 |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
40 Rem run bash to to regitser the initial envorinment |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
41 echo "Setting up MSYS system ..." |
5162
d755e64f02f7
* installer-files/post-install.bat: quotes around comman names in install script
John Donoghue
parents:
4793
diff
changeset
|
42 "%MSYSDIR%\bin\bash.exe" --login -c echo |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
43 echo "Updating fc-cache (may take a while) ..." |
5162
d755e64f02f7
* installer-files/post-install.bat: quotes around comman names in install script
John Donoghue
parents:
4793
diff
changeset
|
44 "%OCTAVE_HOME%\bin\fc-cache.exe" -v |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
45 echo "Updating octave packages ..." |
5221
302be3cb0135
* installer-files/post-install.bat: only pkg rebuild if version < 6
John Donoghue
parents:
5162
diff
changeset
|
46 "%OCTAVE_HOME%\bin\octave.bat" --no-gui -W -H -f -q --eval "if version()(1) < '6', pkg rebuild, end" |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
diff
changeset
|
47 |