Skip to content

Commit

Permalink
add check for required re2c
Browse files Browse the repository at this point in the history
>=0.13.5 is required for php-7.0.0
  • Loading branch information
weltling committed Aug 10, 2015
1 parent f318bff commit e7e646b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion makedist
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,15 @@ VER=$1 ; shift
old_IFS="$IFS"
IFS=.
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
if test "${1}" -lt "3" -o "${1}" = "3" -a "${2}" -eq "0" -a "${3}" -lt "2"; then
echo "You will need bison >= 3.0.2 if you want to regenerate the Zend parser (found ${1}.${2}.${3}).)"
exit 2
fi
eval set `re2c --version| grep 're2c' | cut -d ' ' -f 2 | sed -e 's/\./ /g'`
if test "${2}" -lt "13" -o "${2}" -eq "13" -a "${3}" -lt "5"; then
echo "You will need re2c >= 0.13.5 if you want to regenerate the Zend parser (found ${1}.${2}.${3}).)"
exit 2
fi
IFS="$old_IFS"

if test "x$PHPROOT" == "x"; then
Expand Down

0 comments on commit e7e646b

Please sign in to comment.