summaryrefslogtreecommitdiff
path: root/runlex.sh
diff options
context:
space:
mode:
authorguy <guy>2007-12-31 02:40:21 +0000
committerguy <guy>2007-12-31 02:40:21 +0000
commitc370aa3788dc7e6203be4cfec6a48211d1ee7518 (patch)
tree8bc5f622130bfe4586a5dafd9013040a5606c3dc /runlex.sh
parenta4e747119ef0324aab15a203f1e30dfcfebb398e (diff)
downloadlibpcap-c370aa3788dc7e6203be4cfec6a48211d1ee7518.tar.gz
The first argument to runlex is now just the command to run, so we can
just compare it with "flex" to determine whether we're running Lex or Flex.
Diffstat (limited to 'runlex.sh')
-rwxr-xr-xrunlex.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/runlex.sh b/runlex.sh
index c2db771c..aeea2693 100755
--- a/runlex.sh
+++ b/runlex.sh
@@ -7,7 +7,7 @@
# means that neither Flex nor Lex was found, so we report an error and
# quit.
#
-# @(#) $Header: /tcpdump/master/libpcap/runlex.sh,v 1.2 2007-12-31 02:21:09 guy Exp $
+# @(#) $Header: /tcpdump/master/libpcap/runlex.sh,v 1.3 2007-12-31 02:40:21 guy Exp $
#
#
@@ -67,10 +67,10 @@ done
#
# Is it Lex, or is it Flex?
#
-if expr "${LEX}" : flex >/dev/null
+if [ "${LEX}" = flex ]
then
#
- # "flex" appears at the beginning of ${LEX}, so it's Flex.
+ # It's Flex.
#
have_flex=yes