Mercurial > mxe-octave
view tools/gen-bat-wrapper @ 6387:8bf821eb44fb
maint: Merge release to default.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sat, 27 Aug 2022 13:00:38 +0200 |
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