aboutsummaryrefslogtreecommitdiffstats
path: root/tools/runlex.sh
AgeCommit message (Collapse)AuthorFilesLines
2016-04-05Expand a comment.Guy Harris1-2/+3
Change-Id: I13732bb2877a41b5f5d018128e05ebd4bfb6a1bf Reviewed-on: https://code.wireshark.org/review/14825 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-04-03Make the Flex scanners and YACC parser in libraries reentrant.Guy Harris1-53/+38
master-branch libpcap now generates a reentrant Flex scanner and Bison/Berkeley YACC parser for capture filter expressions, so it requires versions of Flex and Bison/Berkeley YACC that support that. We might as well do the same. For libwiretap, it means we could actually have multiple K12 text or Ascend/Lucent text files open at the same time. For libwireshark, it might not be as useful, as we only read configuration files at startup (which should only happen once, in one thread) or on demand (in which case, if we ever support multiple threads running libwireshark, we'd need a mutex to ensure that only one file reads it), but it's still the right thing to do. We also require a version of Flex that can write out a header file, so we change the runlex script to generate the header file ourselves. This means we require a version of Flex new enough to support --header-file. Clean up some other stuff encountered in the process. Change-Id: Id23078c6acea549a52fc687779bb55d715b55c16 Reviewed-on: https://code.wireshark.org/review/14719 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-03-23Make runlex.sh quieterJoão Valverde1-6/+6
Change-Id: I5a20493d1cca57ecb2487c443e9c0e20120fd711 Reviewed-on: https://code.wireshark.org/review/14575 Reviewed-by: João Valverde <j@v6e.pt>
2014-07-08Fix the flex wrapper to ensure Cygwin /bin is on the path for Windows.Graham Bloice1-0/+2
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>
2014-02-14Remove $Id$ and other Subversion leftovers from the tools.Jeff Morriss1-2/+0
There are a few things in here which could still use attention. Don't regenerate anything now. Change-Id: I283c224d3523212144707fca3d6265916cb11792 Reviewed-on: https://code.wireshark.org/review/205 Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
2014-02-03Don't use newer shell features, as we now just use /bin/sh.Guy Harris1-4/+9
/bin/sh in Solaris 10, for example, doesn't understand "${OS#Windows}", so using /bin/sh broke the Solaris build on the buildbot. Use a case statement instead. Change-Id: Icdec74599c339e19ef6ffc7728f4ae2d5cf98999 Reviewed-on: https://code.wireshark.org/review/96 Reviewed-by: Guy Harris <guy@alum.mit.edu> Tested-by: Guy Harris <guy@alum.mit.edu>
2014-02-02Fix build on FreeBSD 10.0Edwin Groothuis1-1/+1
Change-Id: I6be0d2dfe3b44f166233b1dd20ef02c10a024f97 Reviewed-on: https://code.wireshark.org/review/74 Reviewed-by: Evan Huus <eapache@gmail.com> Tested-by: Evan Huus <eapache@gmail.com>
2014-01-16If you use bashisms it means you're a bash script.Gerald Combs1-1/+1
svn path=/trunk/; revision=54829
2014-01-16More Chocolatey lex/yacc updates.Gerald Combs1-1/+8
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
2014-01-16Allow the use of Win flex-bison and document how to do that.Gerald Combs1-1/+1
svn path=/trunk/; revision=54824
2013-11-03Pass the name of the sed executable as an explicit argurment toJörg Mayer1-3/+13
runlex.sh (like it is done with LEX already). May fix a problem on Windows with cmake. svn path=/trunk/; revision=53059
2012-07-02From Todd Eigenschink via ↵Jeff Morriss1-1/+1
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7411 : Have runlex.sh exit with the exit status of lex (if it failed). svn path=/trunk/; revision=43555
2012-02-22More debugging information - in at least one of the failures, neither ofGuy Harris1-0/+6
the "Wrote xxx" messages was printed, although the compiler appeared to have been run on the .c file that was never claimed to have been written, but got an error because it couldn't find the .h file (also never claimed to have been written), and in one of the successes on the same buildbot, they were both printed for the same file. svn path=/trunk/; revision=41133
2012-01-14Add some debugging output to help track down an intermittent problem onGerald Combs1-1/+5
one of the buildbots. svn path=/trunk/; revision=40489
2007-08-041989 was quite a while ago. We use function prototypes extensively;Guy Harris1-1/+1
don't worry about YY_PROTO, which isn't defined with the newer shinier versions of Flex. svn path=/trunk/; revision=22450
2007-08-04Sigh, crufty old shells. The Solaris test(1) manual says thatGuy Harris1-1/+1
1) "-e" isn't supported by good old /bin/sh, so we use "-r" instead; 2) "The algorithm for determining the precedence of the operators and the return value that will be generated is based on the number of arguments presented to test", so we explicitly parenthesize. svn path=/trunk/; revision=22448
2007-08-04Oops, forgot to check in the script for running Flex/Lex.Guy Harris1-0/+159
svn path=/trunk/; revision=22447