1#! /bin/sh 2# 3# %CopyrightBegin% 4# 5# Copyright Ericsson AB 2002-2016. All Rights Reserved. 6# 7# Licensed under the Apache License, Version 2.0 (the "License"); 8# you may not use this file except in compliance with the License. 9# You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, software 14# distributed under the License is distributed on an "AS IS" BASIS, 15# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16# See the License for the specific language governing permissions and 17# limitations under the License. 18# 19# %CopyrightEnd% 20# 21CMD="" 22while test -n "$1" ; do 23 x="$1" 24 case "$x" in 25 -out:) 26 shift 27 case "$1" in 28 /*) 29 MPATH=`w32_path.sh -d $1`;; 30 *) 31 MPATH=$1;; 32 esac 33 CMD="$CMD -out:\"$MPATH\"";; 34 -out:/*) 35 y=`echo $x | sed 's,^-out:\(/.*\),\1,g'`; 36 MPATH=`w32_path.sh -d $y`; 37 CMD="$CMD -out:\"$MPATH\"";; 38 /*) 39 MPATH=`w32_path.sh -d $x`; 40 CMD="$CMD \"$MPATH\"";; 41 *) 42 y=`echo $x | sed 's,",\\\",g'`; 43 CMD="$CMD \"$y\"";; 44 esac 45 shift 46done 47 48eval lib.exe /nologo $CMD 49