Get rid of bashisms in armlink_adapter.sh
Change-Id: If3cd84bb873fbad5622172c9b79ad8ae5485235a
This commit is contained in:
parent
3526f1cd5e
commit
eb2fbea621
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
##
|
##
|
||||||
## Copyright (c) 2010 The WebM project authors. All Rights Reserved.
|
## Copyright (c) 2010 The WebM project authors. All Rights Reserved.
|
||||||
##
|
##
|
||||||
@ -13,20 +13,20 @@
|
|||||||
verbose=0
|
verbose=0
|
||||||
set -- $*
|
set -- $*
|
||||||
for i; do
|
for i; do
|
||||||
if [ "$i" == "-o" ]; then
|
if [ "$i" = "-o" ]; then
|
||||||
on_of=1
|
on_of=1
|
||||||
elif [ "$i" == "-v" ]; then
|
elif [ "$i" = "-v" ]; then
|
||||||
verbose=1
|
verbose=1
|
||||||
elif [ "$i" == "-g" ]; then
|
elif [ "$i" = "-g" ]; then
|
||||||
args="${args} --debug"
|
args="${args} --debug"
|
||||||
elif [ "$on_of" == "1" ]; then
|
elif [ "$on_of" = "1" ]; then
|
||||||
outfile=$i
|
outfile=$i
|
||||||
on_of=0
|
on_of=0
|
||||||
elif [ -f "$i" ]; then
|
elif [ -f "$i" ]; then
|
||||||
infiles="$infiles $i"
|
infiles="$infiles $i"
|
||||||
elif [ "${i:0:2}" == "-l" ]; then
|
elif [ "${i#-l}" != "$i" ]; then
|
||||||
libs="$libs ${i#-l}"
|
libs="$libs ${i#-l}"
|
||||||
elif [ "${i:0:2}" == "-L" ]; then
|
elif [ "${i#-L}" != "$i" ]; then
|
||||||
libpaths="${libpaths} ${i#-L}"
|
libpaths="${libpaths} ${i#-L}"
|
||||||
else
|
else
|
||||||
args="${args} ${i}"
|
args="${args} ${i}"
|
||||||
|
Loading…
Reference in New Issue
Block a user