From: Mark Wooding Date: Sat, 11 Jun 2011 18:31:53 +0000 (+0100) Subject: mdw-setup: Fix regexp portability. X-Git-Tag: 1.3.7~4 X-Git-Url: https://git.distorted.org.uk/~mdw/cfd/commitdiff_plain/4fd54ed3c8cedc3f4d3fbe7f51a24eaaaa391aff mdw-setup: Fix regexp portability. The `\?' quantifier is a GNU extension. Apparently \{0,1\} is a more portable replacement. --- diff --git a/mdw-setup b/mdw-setup index f60a45e..ab62f09 100755 --- a/mdw-setup +++ b/mdw-setup @@ -89,7 +89,7 @@ if [ "$configure" ]; then autoconf --force if grep >/dev/null 'AC_CONFIG_AUX_DIR' $configure; then auxdir=$( - sed -n 's:^.*AC_CONFIG_AUX_DIR(\[\?\([^])]*\)\]\?).*$:\1:p' $configure) + sed -n 's:^.*AC_CONFIG_AUX_DIR(\[\{0,1\}\([^])]*\)\]\{0,1\}).*$:\1:p' $configure) mkdir -p $auxdir fi grep >/dev/null 'A[MC]_CONFIG_HEADER' $configure && autoheader