Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/Mk/Wrappers/bison
16461 views
#!/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