mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / netware / BUILD / mwldnlm
blobb1822827b595e0391c9ad8db5725b56bc8576f8b
1 #! /bin/sh
3 # stop on errors
4 set -e
6 # If libtool passes "x" as the first argument to this script
7 # it's an indication that libtool is trying to unpack .la's
8 # so they can be added to a new library
9 # This step does not work on Netware and we avoid it by
10 # replacing the .la library with the path to the .a library
11 # in Makefile.in
13 args=" $*"
15 # NOTE: Option 'pipefail' is not standard sh
16 set -o pipefail
17 wine --debugmsg -all -- mwldnlm $args | \
18 perl -pe 's/\r//g; s/^\e.*\e(\[J|>)?//; s/[[^:print:]]//g'