summaryrefslogtreecommitdiff
path: root/netware/BUILD/mwccnlm
diff options
context:
space:
mode:
Diffstat (limited to 'netware/BUILD/mwccnlm')
-rwxr-xr-xnetware/BUILD/mwccnlm9
1 files changed, 6 insertions, 3 deletions
diff --git a/netware/BUILD/mwccnlm b/netware/BUILD/mwccnlm
index e6840e781f8..030d87288f2 100755
--- a/netware/BUILD/mwccnlm
+++ b/netware/BUILD/mwccnlm
@@ -3,9 +3,12 @@
# 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'`
+# 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