Skip to content

Commit 3ad829a

Browse files
committed
buildsystem: Use printf instead of echo, use dollar shell subst instead backtick
1 parent b65b326 commit 3ad829a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/001-binutils.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ if [ "$(uname -s)" = "Darwin" ]; then
4444
TARG_XTRA_OPTS="--with-system-zlib --with-gmp=$(brew --prefix gmp) --with-mpfr=$(brew --prefix mpfr)"
4545
elif command -v port &> /dev/null; then
4646
## Check if using MacPorts
47-
MACPORT_BASE=$(dirname `port -q contents gmp|grep gmp.h`|sed s#/include##g)
48-
echo Macport base is $MACPORT_BASE
47+
MACPORT_BASE=$(dirname $(port -q contents gmp|grep gmp.h)|sed s#/include##g)
48+
printf 'Macport base is %s\n' "$MACPORT_BASE"
4949
TARG_XTRA_OPTS="--with-system-zlib --with-libiconv_prefix=$MACPORT_BASE --with-gmp=$MACPORT_BASE --with-mpfr=$MACPORT_BASE --with-mpc=$MACPORT_BASE"
5050
fi
5151
fi

0 commit comments

Comments
 (0)