From a7e616d1622b0f0fb75923b1e4e0c59635d90a55 Mon Sep 17 00:00:00 2001 From: Graham Bloice Date: Tue, 8 Jul 2014 11:26:49 +0100 Subject: [PATCH] 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 Tested-by: Graham Bloice --- tools/runlex.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/runlex.sh b/tools/runlex.sh index 7448ae531a..3763232882 100755 --- a/tools/runlex.sh +++ b/tools/runlex.sh @@ -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 @@ -38,6 +39,7 @@ fi case "$OS" in Windows*) + PATH=$PATH:/bin LEX=`cygpath --unix $1` echo "$1 -> $LEX" ;;