aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcore/binutils/build3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/binutils/build b/core/binutils/build
index 61c53318..f7e86098 100755
--- a/core/binutils/build
+++ b/core/binutils/build
@@ -5,13 +5,14 @@ case "$3" in
i?86) archopts="--enable-64-bit-bfd"
esac
-cat > makeinfo <<EOF
+command -v makeinfo >/dev/null || { cat > makeinfo <<EOF
#!/bin/sh
printf 'makeinfo (GNU texinfo) 5.2\n'
EOF
chmod +x makeinfo
export PATH=$PATH:$PWD
+}
# Word splitting is intentional here.
# shellcheck disable=2086