freebsd-ports/Mk/Wrappers/bison
Mathieu Arnold 5d33e04596
framework: Remove $FreeBSD$
Where appropriate fiddle with a few other things.
2021-04-06 16:27:10 +02:00

18 lines
358 B
Bash

#!/bin/sh
# 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