aboutsummaryrefslogtreecommitdiffstats
path: root/tools/runlex.sh
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2014-01-16 18:57:29 +0000
committerGerald Combs <gerald@wireshark.org>2014-01-16 18:57:29 +0000
commit8db4bc2499a43afe57fca8589a43d7ee30cd1b86 (patch)
treeb36159df3b1ce08563d637538a6d39e9d936aa4e /tools/runlex.sh
parent62249477b6b159e929ac4f94bf5e3c38c475636d (diff)
More Chocolatey lex/yacc updates.
Add Windows-style path handling to runlex.sh. Update the example Chocolatey LEX path accordingly. This lets us use path information in LEX and have it work in both nmake and runlex.sh Add a FindChocolatey.cmake module. Update FindLEX and FindYACC to use it. The code is currently untested and commented out. svn path=/trunk/; revision=54828
Diffstat (limited to 'tools/runlex.sh')
-rwxr-xr-xtools/runlex.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/runlex.sh b/tools/runlex.sh
index e2f3a877de..a564074f04 100755
--- a/tools/runlex.sh
+++ b/tools/runlex.sh
@@ -36,7 +36,14 @@ then
echo "Usage: runlex <lex/flex command to run> [ arguments ]" 1>&2
exit 1
fi
-LEX="$1"
+
+if [ -n "${OS#Windows}" ] ; then
+ LEX=`cygpath --unix $1`
+ echo "$1 -> $LEX"
+else
+ LEX="$1"
+fi
+
shift
#
# Check whether we have it.