Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15415002
D11628.id27985.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11628.id27985.diff
View Options
diff --git a/support/xhpast/Makefile b/support/xhpast/Makefile
--- a/support/xhpast/Makefile
+++ b/support/xhpast/Makefile
@@ -30,8 +30,7 @@
cp xhpast $(ROOT)/bin/xhpast
scanner: scanner.l
- ./find_flex.sh >/dev/null && \
- `./find_flex.sh` -C --header-file=scanner.lex.hpp -o scanner.lex.cpp -d $<
+ flex -C --header-file=scanner.lex.hpp -o scanner.lex.cpp -d $<
echo '/* @gen''er''ated */' >> scanner.lex.cpp
echo '/* @gen''er''ated */' >> scanner.lex.hpp
diff --git a/support/xhpast/find_flex.sh b/support/xhpast/find_flex.sh
deleted file mode 100755
--- a/support/xhpast/find_flex.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/bash
-
-FLEX=`which flex35 2>/dev/null || which flex 2>/dev/null`
-if [ $? -ne 0 ]
-then
- echo "ERROR: 'flex' is not installed on this system." 1>&2;
- exit 1;
-fi
-
-FLEXVERSION=`"$FLEX" --version`
-
-if [[ $FLEXVERSION == "flex 2.5.4" ]]
-then
- echo "ERROR: the version of flex on this system is too old." 1>&2
- echo "Upgrade to at least 2.5.35 (which is NEWER than 2.5.4)." 1>&2
- exit 1;
-fi
-
-if [ "$FLEXVERSION" != "flex 2.5.35" -a "$FLEXVERSION" != "flex35 2.5.35" ]
-then
- echo "WARNING: the version of flex on this system may be incorrect." 1>&2
- echo "If you receive errors, try upgrading to 2.5.35 or newer." 1>&2
-fi
-
-echo $FLEX
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 21, 3:29 AM (10 h, 37 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7420119
Default Alt Text
D11628.id27985.diff (1 KB)
Attached To
Mode
D11628: Drop explicit version check for flex
Attached
Detach File
Event Timeline
Log In to Comment