Skip to content

Commit

Permalink
Fix Bison version check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha Schumann committed Jun 25, 2000
1 parent c9fea52 commit 2573a50
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions makedist
Original file line number Diff line number Diff line change
Expand Up @@ -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 <package> <version>" >&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:[email protected]:/repository
ZENDROOT=:pserver:[email protected]:/repository
Expand All @@ -52,14 +60,6 @@ else
ECHO_C='\c'
fi

if test "$#" != "2"; then
echo "Usage: makedist <package> <version>" >&2
exit 1
fi

PKG=$1 ; shift
VER=$1 ; shift

MY_OLDPWD=`pwd`

# the destination .tar.gz file
Expand Down

0 comments on commit 2573a50

Please sign in to comment.