diff options
authorAlexander Aring <>2013-01-07 23:36:05 +0100
committerMarc Kleine-Budde <>2013-01-08 10:40:10 +0100
commit2a89985c97422af3569eb6d268e3ccdc9c3fb0e5 (patch)
parent11e79705d132e2fcfc95eec468f4d4289578ff63 (diff)
ptxdist-2013.01.0.tar.xz change regex for sed versionptxdist-2013.01.0
Change regex for sed version in This regex will match only on the first line and doesn't look for a 'version' pattern which is not available in sed version 4.2.2. The new regex will match in the first line of 'sed --version' in a pattern which starts with random character sequence(or zero) followed by whitespace character and several digits of pattern x.x....x which x is a number. This pattern will be save in the SED_VERSION variable. Signed-off-by: Alexander Aring <> [mkl: add match for GNU in regex] Signed-off-by: Marc Kleine-Budde <>
1 files changed, 1 insertions, 1 deletions
diff --git a/ b/
index d4c83b8a6..b6dc16dcf 100644
--- a/
+++ b/
@@ -116,7 +116,7 @@ if test -z "$SED"; then
AC_MSG_CHECKING([sed version])
-SED_VERSION=`$SED --version 2>/dev/null | $SED -ne "s/.*version \([[0-9\.]]*\)/\1/p"`
+SED_VERSION=`$SED --version 2>/dev/null | $SED -ne "1 s/.*GNU.*\s\([[0-9\+\.]]\+\).*/\1/p"`
case "$SED_VERSION" in
3.*) AC_MSG_ERROR([we need at least GNU sed 4.x but found $SED_VERSION]) ;;
4.*) ;;