# HG changeset patch # User Mike Miller # Date 1455837606 28800 # Node ID 46284491ffc5dbee3b913e38ceacd2ddcadeef9b # Parent 0cf6c08cb252100a34186bc0d2d6c45d0d5e6b73 * build-env-features.sh: Fix awk extended regexp syntax (fixes bug in 8376de2eaf00) diff -r 0cf6c08cb252 -r 46284491ffc5 libinterp/build-env-features.sh --- 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