mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Fix bison.sh for patch-less bison versions (#1416)
This commit is contained in:
@@ -5,7 +5,7 @@ OUTPUT_CPP="${1:?}"
|
|||||||
INPUT_Y="${2:?}"
|
INPUT_Y="${2:?}"
|
||||||
|
|
||||||
BISON_MAJOR=$(bison -V | sed -E 's/^.+ ([0-9]+)\..*$/\1/g;q')
|
BISON_MAJOR=$(bison -V | sed -E 's/^.+ ([0-9]+)\..*$/\1/g;q')
|
||||||
BISON_MINOR=$(bison -V | sed -E 's/^.+ [0-9]+\.([0-9]+)\..*$/\1/g;q')
|
BISON_MINOR=$(bison -V | sed -E 's/^.+ [0-9]+\.([0-9]+)(\..*)?$/\1/g;q')
|
||||||
|
|
||||||
if [ "$BISON_MAJOR" -lt 3 ]; then
|
if [ "$BISON_MAJOR" -lt 3 ]; then
|
||||||
echo "Bison $BISON_MAJOR.$BISON_MINOR is not supported" 1>&2
|
echo "Bison $BISON_MAJOR.$BISON_MINOR is not supported" 1>&2
|
||||||
|
|||||||
Reference in New Issue
Block a user