Mercurial > octave
changeset 21305:46284491ffc5
* build-env-features.sh: Fix awk extended regexp syntax (fixes bug in 8376de2eaf00)
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Thu, 18 Feb 2016 15:20:06 -0800 |
parents | 0cf6c08cb252 |
children | 0152d8745c3d |
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 Thu Feb 18 16:20:49 2016 +0000 +++ b/libinterp/build-env-features.sh Thu Feb 18 15:20:06 2016 -0800 @@ -36,12 +36,12 @@ EOF $AWK \ - '/#define \(OCTAVE_\|\)HAVE_/ { - sub (/\(OCTAVE_\|\)HAVE_/, "", $2); + '/#define (OCTAVE_|)HAVE_/ { + sub (/(OCTAVE_|)HAVE_/, "", $2); printf (" m.assign (\"%s\", octave_value (true));\n", $2); } - /\/\* #undef \(OCTAVE_\|\)HAVE_/ { - sub (/\(OCTAVE_\|\)HAVE_/, "", $3); + /\/\* #undef (OCTAVE_|)HAVE_/ { + sub (/(OCTAVE_|)HAVE_/, "", $3); printf (" m.assign (\"%s\", octave_value (false));\n", $3); } { }' $conffile | sort