diff options
author | Graham Bloice <graham.bloice@trihedral.com> | 2014-07-08 11:26:49 +0100 |
---|---|---|
committer | Graham Bloice <graham.bloice@trihedral.com> | 2014-07-08 13:14:42 +0000 |
commit | a7e616d1622b0f0fb75923b1e4e0c59635d90a55 (patch) | |
tree | ce33967fc7987d6a7c22ba19de30435460a80e05 /tools/runlex.sh | |
parent | b0a7251f385f5f2b73ac378d2c7b27e7b30c790c (diff) |
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>
Diffstat (limited to 'tools/runlex.sh')
-rwxr-xr-x | tools/runlex.sh | 2 |
1 files changed, 2 insertions, 0 deletions
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 <gerald@wireshark.org> @@ -38,6 +39,7 @@ fi case "$OS" in Windows*) + PATH=$PATH:/bin LEX=`cygpath --unix $1` echo "$1 -> $LEX" ;; |