]> granicus.if.org Git - libvpx/commitdiff
Get rid of bashisms in armlink_adapter.sh
authorGuillaume Martres <gmartres@google.com>
Thu, 15 Aug 2013 01:56:48 +0000 (18:56 -0700)
committerGuillaume Martres <gmartres@google.com>
Thu, 15 Aug 2013 01:57:10 +0000 (18:57 -0700)
Change-Id: If3cd84bb873fbad5622172c9b79ad8ae5485235a

build/make/armlink_adapter.sh

index b53669c9ba24ff07f6ccb19d728c7542dc299149..75c342e97ce3923eff0eec8647a90823b16c4d4f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 ##
 ##  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
 ##
 verbose=0
 set -- $*
 for i; do
-    if [ "$i" == "-o" ]; then
+    if [ "$i" = "-o" ]; then
         on_of=1
-    elif [ "$i" == "-v" ]; then
+    elif [ "$i" = "-v" ]; then
         verbose=1
-    elif [ "$i" == "-g" ]; then
+    elif [ "$i" = "-g" ]; then
         args="${args} --debug"
-    elif [ "$on_of" == "1" ]; then
+    elif [ "$on_of" = "1" ]; then
         outfile=$i
         on_of=0
     elif [ -f "$i" ]; then
         infiles="$infiles $i"
-    elif [ "${i:0:2}" == "-l" ]; then
+    elif [ "${i#-l}" != "$i" ]; then
         libs="$libs ${i#-l}"
-    elif [ "${i:0:2}" == "-L" ]; then
+    elif [ "${i#-L}" != "$i" ]; then
         libpaths="${libpaths} ${i#-L}"
     else
         args="${args} ${i}"