#! /bin/sh # stop on errors set -e # mwccnlm is having a hard time understanding "-I./../include" # convert it to "-I../include" args=" "`echo $* | sed -e 's/-I.\/../-I../g'` # NOTE: Option 'pipefail' is not standard sh set -o pipefail wine --debugmsg -all -- mwccnlm $args | \ perl -pe 's/\r//g; s/^\e.*\e(\[J|>)?//; s/[[^:print:]]//g'