From 4fd54ed3c8cedc3f4d3fbe7f51a24eaaaa391aff Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 11 Jun 2011 19:31:53 +0100 Subject: [PATCH] mdw-setup: Fix regexp portability. The `\?' quantifier is a GNU extension. Apparently \{0,1\} is a more portable replacement. --- mdw-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.0