mariadb/netware/BUILD/mwccnlm
msvensson@neptunus.(none) ca81d57ff8 Netware changes for build with yaSSL
- Make mwenv automatically adapt the setting to current build dir.
- Fix include paths that mwccnlm does not understand
- Link libmysl with yassl
2006-09-22 17:43:05 +02:00

16 lines
421 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"
# * "-I.../..", convert it to "-I../../"
args=" "`echo $* | sed \
-e 's/-I.\/../-I../g' \
-e 's/\(-I[.\/]*.\) /\1\/ /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'