mirror of https://github.com/ecmwf/eccodes.git
ECC-1109: Upgrade versions of flex and bison
This commit is contained in:
parent
739318e1a7
commit
bfa7dedf49
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue