view tools/gen-bat-wrapper @ 5522:c475092f8142

openblas: Support using ccache. * src/openblas.mk: Get the basename of the (cross-)compilers to find their ccache links in the search path.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 27 Aug 2020 12:47:35 +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