Mercurial > mxe-octave
view tools/gen-bat-wrapper @ 5957:9cd5425b033b
octave-launch-firsttime: New launcher executable for starting Octave first time.
* installer-files/octave-launch.c: Conditionally change to USERPROFILE before
running Octave.
* binary-dist-rules.mk(octave-launch-firsttime,
installer-files/octave-launch-firsttime.exe): Add build rules for new launcher
executable.
(copy-windows-dist-files): Copy octave-launch-firsttime.exe to
$(OCTAVE_DIST_DIR).
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sat, 20 Nov 2021 15:34:20 +0100 |
parents | 32a7bea19bb1 |
children |
line wrap: on
line source
#!/usr/bin/env bash prog=$1 if [ -z $prog ]; then echo "Missing program name" >&2 exit 1 fi cat << EOF @echo off set BINPATH=%~dp0 %BINPATH%bash -c '$prog %*' EOF