From 2573a5041f342c0973bb867acd0e7c3b8e8aca59 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Sun, 25 Jun 2000 22:48:02 +0000 Subject: [PATCH] Fix Bison version check --- makedist | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/makedist b/makedist index c4e4793046..f808890a3b 100755 --- a/makedist +++ b/makedist @@ -27,14 +27,22 @@ # $Id$ # -#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" -# exit 10 -#fi -#IFS="$old_IFS" +if test "$#" != "2"; then + echo "Usage: makedist " >&2 + exit 1 +fi + +PKG=$1 ; shift +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" + exit 10 +fi +IFS="$old_IFS" PHPROOT=:pserver:cvsread@cvs.php.net:/repository ZENDROOT=:pserver:cvsread@cvs.zend.com:/repository @@ -52,14 +60,6 @@ else ECHO_C='\c' fi -if test "$#" != "2"; then - echo "Usage: makedist " >&2 - exit 1 -fi - -PKG=$1 ; shift -VER=$1 ; shift - MY_OLDPWD=`pwd` # the destination .tar.gz file -- 2.40.0