qemu_mode and unicorn_mode build scripts: replace type with command -v
MODIFY
qemu_mode/build_qemu_support.sh
qemu_mode/build_qemu_support.sh
@@ -65,7 +65,7 @@ fi
PREREQ_NOTFOUND=
for i in libtool wget python automake autoconf sha384sum bison flex iconv patch pkg-config; do
- T=`type "$i" | awk '{print $NF}' 2>/dev/null`
+ T=`command -v "$i" 2>/dev/null`
if [ "$T" = "" ]; then

MODIFY
unicorn_mode/build_unicorn_support.sh
unicorn_mode/build_unicorn_support.sh
@@ -93,7 +93,7 @@ fi
PREREQ_NOTFOUND=
for i in $PYTHONBIN automake autoconf git $MAKECMD $TARCMD; do
- T=`type "$i" | awk '{print $NF}' 2>/dev/null`
+ T=`command -v "$i" 2>/dev/null`
if [ "$T" = "" ]; then

qemu_mode and unicorn_mode build scripts: replace type with command -v