summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-04-29 19:54:39 +0100
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-04-29 19:54:39 +0100
commita778c2bf305b8df176db6dc697f9773c9bfce1de (patch)
treefb7f181ace0bc5ab7de263457c3cd8741894a105
parentcd416f3e7559cc7f6484cad505267f3b9e041b4b (diff)
downloadmidipix_build-a778c2bf305b8df176db6dc697f9773c9bfce1de.tar.bz2
midipix_build-a778c2bf305b8df176db6dc697f9773c9bfce1de.tar.xz
subr/build_init.subr: ensure awk(1) in $PATH is GNU Awk.
-rw-r--r--subr/build_init.subr2
1 files changed, 2 insertions, 0 deletions
diff --git a/subr/build_init.subr b/subr/build_init.subr
index 35551668..5938ecfb 100644
--- a/subr/build_init.subr
+++ b/subr/build_init.subr
@@ -240,6 +240,8 @@ buildp_init_prereqs() {
pgrep pkill printf readlink rm sed sha256sum sort \
stat tail tar test touch tr uniq wget xz zip; then
printf "%s\n" "${_status}" >&2; exit 1;
+ elif ! awk -V 2>/dev/null | grep -q "^GNU Awk "; then
+ printf "Error: awk(1) in \$PATH must be GNU Awk." >&2; exit 1;
elif ! (FNAME="$(mktemp)" && { trap "rm -f \"\${FNAME}\"" EXIT; \
sed -i'' -e '' "${FNAME}" >/dev/null 2>&1; }); then
printf "Error: sed(1) in \${PATH} does not support the \`-i' option.\n" >&2; exit 1;