com php-src: add check for required re2c: makedist
| From: | Anatol Belski | Date: | Mon, 10 Aug 2015 08:40:14 +0000 |
| Subject: | com php-src: add check for required re2c: makedist | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-88640@lists.php.net to get a copy of this message | ||
Commit: e7e646b0e5f5b065ebda666a3836be1d5d205c04
Author: Anatol Belski <ab@php.net> Mon, 10 Aug 2015 10:40:14 +0200
Parents: f318bffec33314cbd33e06e52f25cbf1831079da
Branches: PHP-7.0.0
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e7e646b0e5f5b065ebda666a3836be1d5d205c04
Log:
add check for required re2c
>=0.13..5 is required for php-7.0.0
Changed paths:
M makedist
Diff:
diff --git a/makedist b/makedist
index aa2e6bc..3587bfd 100755
--- a/makedist
+++ b/makedist
@@ -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