Page MenuHomeFreeBSD

D24017.diff
No OneTemporary

D24017.diff

Index: head/Mk/Uses/bison.mk
===================================================================
--- head/Mk/Uses/bison.mk
+++ head/Mk/Uses/bison.mk
@@ -26,6 +26,8 @@
RUN_DEPENDS+= ${_BISON_DEPENDS}
.elif ${bison_ARGS} == "alias"
BINARY_ALIAS+= bison=byacc
+.elif ${bison_ARGS} == "wrapper"
+BINARY_WRAPPERS+= bison
.else
IGNORE= USES=bison - invalid args: [${bison_ARGS}] specified
.endif
Index: head/Mk/Wrappers/bison
===================================================================
--- head/Mk/Wrappers/bison
+++ head/Mk/Wrappers/bison
@@ -0,0 +1,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 -L $args $inputfile

File Metadata

Mime Type
text/plain
Expires
Fri, Apr 10, 12:25 AM (6 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31145791
Default Alt Text
D24017.diff (959 B)

Event Timeline