1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-06 01:57:40 +00:00
freebsd-ports/Mk/Wrappers/bison
2020-03-10 14:22:50 +00:00

20 lines
372 B
Bash

#!/bin/sh
#
# $FreeBSD$
# This wrappers allows to deals build system calling bison with certain long option
# and messing with arguments orders
case " $@ " in
*" --version "*) echo "bison (GNU bison 3.5.2)" ; exit 0 ;;
esac
for arg; do
case "$arg" in
*.y) inputfile="$arg" ;;
--verbose|-v) ;; # ignore
*) args="$args $arg" ;;
esac
done
exec byacc $args $inputfile