blob: b44c53bbff85a486a373fc37327e17886a5d001d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/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
|