view tools/gen-bat-wrapper @ 4659:073464b5e319

build-flex: allow build to work on systems without flex * build-flex-1-fixes.patch: Also patch generated scan.c file so that build will succeed on systems that don't have flex installed.
author John W. Eaton <jwe@octave.org>
date Thu, 12 Apr 2018 17:37:58 -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