comparison tools/gen-bat-wrapper @ 4253:32a7bea19bb1

msys-gzip: add .bat wrappers to shellscripts * tools/gen-bat-wrapper: new file * dist-files.mk: add gen-bat-wrapper * src/msys-gzip.mk: add find of shell script and create .bat file
author John D
date Mon, 21 Nov 2016 17:11:21 -0500
parents
children
comparison
equal deleted inserted replaced
4252:2f00a1d250d7 4253:32a7bea19bb1
1 #!/usr/bin/env bash
2
3 prog=$1
4
5 if [ -z $prog ]; then
6 echo "Missing program name" >&2
7 exit 1
8 fi
9
10 cat << EOF
11 @echo off
12 set BINPATH=%~dp0
13 %BINPATH%bash -c '$prog %*'
14 EOF