Mercurial > mxe-octave
comparison installer-files/octave.bat @ 4276:b73fe78f73c3
If home not set, set it to userprofile
* installer-files/octave-firsttime.vbs,
installer-files/octave.bat,
installer-files/octave.vbs: if HOME env not set, set it to user profile
author | John D |
---|---|
date | Thu, 15 Dec 2016 12:57:41 -0500 |
parents | a45374f7d9a3 |
children | 0fdeee4cfe11 |
comparison
equal
deleted
inserted
replaced
4275:d88666c329ba | 4276:b73fe78f73c3 |
---|---|
16 Rem Set up any environment vars we may need | 16 Rem Set up any environment vars we may need |
17 | 17 |
18 set TERM=cygwin | 18 set TERM=cygwin |
19 set GNUTERM=windows | 19 set GNUTERM=windows |
20 set GS=gs.exe | 20 set GS=gs.exe |
21 | |
22 Rem set home if not already set | |
23 if "%HOME%"=="" set HOME=%USERPROFILE% | |
24 if "%HOME%"=="" set HOME=%HOMEDRIVE%%HOMEPATH% | |
25 Rem set HOME to 8.3 format | |
26 for %%I in ("%HOME%") do set HOME=%%~sI | |
21 | 27 |
22 Rem Check for args to see if we are told to start GUI | 28 Rem Check for args to see if we are told to start GUI |
23 Rem with the --force-gui option or not (--no-gui) | 29 Rem with the --force-gui option or not (--no-gui) |
24 Rem Otherwise assume starting as command line | 30 Rem Otherwise assume starting as command line |
25 set GUI_MODE=1 | 31 set GUI_MODE=1 |