]> granicus.if.org Git - php/commitdiff
catch up with the current requirement
authorAnatol Belski <ab@php.net>
Mon, 10 Aug 2015 08:34:26 +0000 (10:34 +0200)
committerAnatol Belski <ab@php.net>
Mon, 10 Aug 2015 08:34:26 +0000 (10:34 +0200)
bison 3.0.2 is used for php-7.0.0

makedist

index 3edeb2cfc85069af8a24c3fc17c9413473ff61aa..aa2e6bcfc32e0e4c2a84d53d9acbb713413d3d50 100755 (executable)
--- a/makedist
+++ b/makedist
@@ -28,9 +28,9 @@ VER=$1 ; shift
 
 old_IFS="$IFS"
 IFS=.
-eval set `bison --version| grep 'GNU Bison' | cut -d ' ' -f 4 | sed -e 's/\./ /'`
-if test "${1}" = "1" -a "${2}" -lt "28"; then
-  echo "You will need bison 1.28 if you want to regenerate the Zend parser (found ${1}.${2}).)"
+eval set `bison --version| grep 'GNU Bison' | cut -d ' ' -f 4 | sed -e 's/\./ /g'`
+if test "${1}" -lt 3 -o "${1}" = "3" -a "${2}" -eq "0" -a "${3}" -lt "3"; then
+  echo "You will need bison >= 3.0.2 if you want to regenerate the Zend parser (found ${1}.${2}.${3}).)"
   exit 2
 fi
 IFS="$old_IFS"