ECC-1109: Upgrade versions of flex and bison

This commit is contained in:
Shahram Najm 2020-05-06 15:04:55 +01:00
parent 739318e1a7
commit bfa7dedf49
1 changed files with 4 additions and 0 deletions

View File

@ -1,4 +1,7 @@
set -xe
# We use flex and bison
export LEX=flex
export LEX_OUT=gribl.c
$LEX -o gribl.c gribl.l
@ -7,6 +10,7 @@ sed 's/fgetc/getc/g' < grib_lex1.c > grib_lex.c
rm -f grib_lex1.c
rm -f $LEX_OUT
# This invokes bison
yacc -v -d griby.y
sed 's/yy/grib_yy/g' < y.tab.c > grib_yacc1.c
sed 's/fgetc/getc/g' < grib_yacc1.c > grib_yacc.c