From: Zdenek Dohnal Date: Wed, 27 Oct 2021 06:05:34 +0000 (+0200) Subject: makesrcdist: Update parsing of AC_INIT X-Git-Tag: v2.4b1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c58194aaa938a9a2bbcf07dde9e78a80272626ac;p=thirdparty%2Fcups.git makesrcdist: Update parsing of AC_INIT The newest autoconf removed the spaces, so we need to check for ',' --- diff --git a/scripts/makesrcdist b/scripts/makesrcdist index f2c754d501..58323733bb 100755 --- a/scripts/makesrcdist +++ b/scripts/makesrcdist @@ -41,7 +41,7 @@ else cupsversionpatch=`echo $version | awk -F. '{if (NF == 3) { print $3 } else { print "0" } }' | sed -e '1,$s/op[0-9]*$//'` cupsversion=`printf "2.03%02d" $cupsversionpatch` - temp=`grep AC_INIT configure.ac | awk '{print $2}' | sed -e '1,$s/^\[//' -e '1,$s/\],$//'` + temp=`grep AC_INIT configure.ac | awk -F, '{print $2}' | sed -e '1,$s/^\[//' -e '1,$s/\]$//'` if test "$temp" != $version; then echo "Still need to update version to $version in configure.ac (saw $temp)" exit 1