]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
makesrcdist: Update parsing of AC_INIT
authorZdenek Dohnal <zdohnal@redhat.com>
Wed, 27 Oct 2021 06:05:34 +0000 (08:05 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Wed, 27 Oct 2021 06:05:34 +0000 (08:05 +0200)
The newest autoconf removed the spaces, so we need to check for ','

scripts/makesrcdist

index f2c754d50127f0fb982e624c189b791d8eed4731..58323733bb7ab9734dc6f423b1666ace6b026f66 100755 (executable)
@@ -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