Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151523544
D24017.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
959 B
Referenced Files
None
Subscribers
None
D24017.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D24017: Create a bison wrapper on top of base byacc
Attached
Detach File
Event Timeline
Log In to Comment