Mercurial > octave
changeset 22516:b3268dbf9781
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).
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Mon, 19 Sep 2016 16:42:59 -0700 |
parents | 77b50a83ec11 |
children | 34f98c1e4d56 |
files | libinterp/build-env-features.sh |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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