view tools/gen-bat-wrapper @ 4769:46bf69e11b71

* src/units.mk: when cross compile for mingw, dont use configure detected units and local file locations
author John Donoghue
date Wed, 11 Jul 2018 13:35:02 -0400
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