Fix the flex wrapper to ensure Cygwin /bin is on the path for Windows.

This is needed for CMake, as it doesn't add Cygwin to the path for the
generated solutions.

Change-Id: I9f05f24ccc741bfc851ecbb892f080f59d2acc2c
Reviewed-on: https://code.wireshark.org/review/2938
Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
Tested-by: Graham Bloice <graham.bloice@trihedral.com>
This commit is contained in:
Graham Bloice 2014-07-08 11:26:49 +01:00
parent b0a7251f38
commit a7e616d162
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@
# First argument is the (quoted) name of the command; if it's null, that
# means that neither Flex nor Lex was found, so we report an error and
# quit.
# Second arg is the sed executable
#
# Wireshark - Network traffic analyzer
# By Gerald Combs <gerald@wireshark.org>
@ -38,6 +39,7 @@ fi
case "$OS" in
Windows*)
PATH=$PATH:/bin
LEX=`cygpath --unix $1`
echo "$1 -> $LEX"
;;