ref: f08c5d888ac82e5678c84b777f467b171ae28441
parent: 7fd8021bbe295cf58ac530cee52c8f3b67fde872
author: Chris Liddell <[email protected]>
date: Tue Dec 10 10:37:35 EST 2019
Reinstate basic regular expression compatibility In Basic Regular Expressions `+' is an ordinary character, use `*' instead. This also maintains consistency with the equivalent code a few lines above in the file.
--- a/autogen.sh
+++ b/autogen.sh
@@ -22,7 +22,7 @@
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