From 952965ab73609a902e3da5f6f81cea57d21798c8 Mon Sep 17 00:00:00 2001 From: Leonardo Taccari Date: Tue, 10 Dec 2019 16:12:18 +0100 Subject: [PATCH] Adjust JBIG2VERSIONGREP to avoid (not supported) `+' character. In Basic Regular Expressions `+' is an ordinary character, use `*' instead. --- autogen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index 1dbe143..41a5d97 100755 --- a/autogen.sh +++ b/autogen.sh @@ -22,7 +22,7 @@ VERSIONGREP="sed -e s/.*[^0-9\.]\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/" VERSIONMKMAJ="sed -e s/\([0-9][0-9]*\)[^0-9].*/\\1/" VERSIONMKMIN="sed -e s/.*[0-9][0-9]*\.//" -JBIG2VERSIONGREP="sed -e s/^.*(\([0-9]\+\)).*/\\1/" +JBIG2VERSIONGREP="sed -e s/^.*(\([0-9][0-9]*\)).*/\\1/" JBIG2MAJOR=$(grep 'define JBIG2_VERSION_MAJOR' jbig2.h | $JBIG2VERSIONGREP) JBIG2MINOR=$(grep 'define JBIG2_VERSION_MINOR' jbig2.h | $JBIG2VERSIONGREP) sed -e "s/^\(AC_INIT[^,]*,\)[^,]*\(,.*\)$/\1 [$JBIG2MAJOR.$JBIG2MINOR]\2/" configure.ac.in > configure.ac -- 2.24.0