diff --git a/makedist b/makedist index 0efcdec3c1164..bd1956569ab7a 100755 --- a/makedist +++ b/makedist @@ -37,15 +37,15 @@ VER=$1 ; shift old_IFS="$IFS" IFS=. -eval set `bison -V|sed "s/GNU Bison version //"` -if test "$1" = "1" && test "28" -gt "$2"; then - echo "Please use Bison 1.28 or higher" +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}).)" exit 10 fi IFS="$old_IFS" PHPROOT=:pserver:cvsread@cvs.php.net:/repository -ZENDROOT=:pserver:cvsread@cvs.zend.com:/repository +ZENDROOT=:pserver:cvsread@cvs.php.net:/repository PHPMOD=php4 ZENDMOD=Zend TSRMMOD=TSRM