mariadb/netware/BUILD/mwccnlm
kent@suse9-x86.mysql.com 7455f8a31f mwldnlm, mwccnlm, mwasmnlm:
Use Perl for filtering, do more filtering
2006-07-03 16:44:17 +02:00

13 lines
340 B
Bash
Executable file

#! /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'