From 52abbccb6930de85a92dcf8504029bcc05063c4b Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Mon, 11 Feb 2008 14:59:07 +0200 Subject: [PATCH] Improved readability of multilib parse-config replacing 'expr' and backtick notation --- lib/multilib/parse-config | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/multilib/parse-config b/lib/multilib/parse-config index 388fa70..c7dbb7a 100644 --- a/lib/multilib/parse-config +++ b/lib/multilib/parse-config @@ -35,10 +35,11 @@ multilib_abi_loop() { esac # alter arch_target if we build 32bit - if expr $abi : "32" > /dev/null ; then - arch_target="`echo $arch_target | arch2arch32`" + if [ "$abi" = "32" ]; then + arch_target="$( echo $arch_target | arch2arch32 )" echo_status "Setting arch_target to $arch_target" fi + # set a proper arch_suffix for pkggetdir to set the right libdir arch_suffix=$abi set_confopt