# HG changeset patch # User Mike Miller # Date 1474328579 25200 # Node ID b3268dbf97818082995fbe82da4c691046db5cdf # Parent 77b50a83ec113009e02930e898f3dddde5b6a0ce build: fix build-env-features substitution pattern for non-GNU awk (bug #49126) * build-env-features.sh: Fix regular expression for clarity and to be compatible with non-GNU awks (e.g. BSD awk). diff -r 77b50a83ec11 -r b3268dbf9781 libinterp/build-env-features.sh --- a/libinterp/build-env-features.sh Mon Sep 19 15:23:48 2016 -0700 +++ b/libinterp/build-env-features.sh Mon Sep 19 16:42:59 2016 -0700 @@ -39,12 +39,12 @@ EOF $AWK \ - '/#define (OCTAVE_|)HAVE_/ { - sub (/(OCTAVE_|)HAVE_/, "", $2); + '/#define (OCTAVE_HAVE|HAVE)_/ { + sub (/(OCTAVE_HAVE|HAVE)_/, "", $2); printf (" m.assign (\"%s\", ov_true);\n", $2); } - /\/\* #undef (OCTAVE_|)HAVE_/ { - sub (/(OCTAVE_|)HAVE_/, "", $3); + /\/\* #undef (OCTAVE_HAVE|HAVE)_/ { + sub (/(OCTAVE_HAVE|HAVE)_/, "", $3); printf (" m.assign (\"%s\", ov_false);\n", $3); } { }' $conffile | sort