Mercurial > mxe-octave
view installer-files/post-install.bat @ 4845:4b11bbe7c8ff
nsis-installer: provide command line opyions for options page (Bug #54766)
* tools/makeinst-script.sh.in: get command options if any and uncheck checkboxes if 0
author | John Donoghue |
---|---|
date | Wed, 03 Oct 2018 08:31:07 -0400 |
parents | 202fa20cf559 |
children | d755e64f02f7 |
line wrap: on
line source
@echo off Rem Run on initial install /update set ROOT_DIR=%~dp0 Rem Convert to 8.3 format so we don't have to worry about spaces. for %%I in ("%ROOT_DIR%") do set ROOT_DIR=%%~sI 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 %MSYSTEM%==MSYS ( set OCTAVE_HOME=%ROOT_DIR% ) else ( if %MSYSTEM%==MINGW32 ( set OCTAVE_HOME=%ROOT_DIR%\mingw32 ) else ( set OCTAVE_HOME=%ROOT_DIR%\mingw64 )) Rem run bash to to regitser the initial envorinment echo "Setting up MSYS system ..." %MSYSDIR%\bin\bash.exe --login -c echo echo "Updating fc-cache (may take a while) ..." %OCTAVE_HOME%\bin\fc-cache.exe -v echo "Updating octave packages ..." %OCTAVE_HOME%\bin\octave.bat --no-gui -W -H -f -q --eval "pkg rebuild"