Mercurial > mxe-octave
view installer-files/post-install.bat @ 5162:d755e64f02f7
* installer-files/post-install.bat: quotes around comman names in install script
author | John Donoghue |
---|---|
date | Tue, 10 Sep 2019 15:27:22 -0400 |
parents | 202fa20cf559 |
children | 302be3cb0135 |
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"