More debugging information - in at least one of the failures, neither of
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 22 Feb 2012 03:13:38 +0000 (03:13 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 22 Feb 2012 03:13:38 +0000 (03:13 +0000)
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.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@41133 f5534014-38df-0310-8fa8-9805f1628bb7

tools/runlex.sh

index f38759c9be539da2d1372679bdda6f6fe3a7ef32..9f075f397cc07f01436fa1d30212d661b877aa6a 100755 (executable)
@@ -85,6 +85,7 @@ done
 #
 # OK, run it.
 #
+echo "Running ${LEX}"
 ${LEX} -o"$outfile" $flags "$@"
 
 #
@@ -95,6 +96,8 @@ then
        #
        # No.  Exit with the failing exit status.
        #
+       exitstatus=$?
+       echo "${LEX} failed: exit status $exitstatus"
        exit $?
 fi
 
@@ -137,6 +140,7 @@ echo "Wrote $outfile"
 # Get the name of the prefix; scan the source files for a %option prefix
 # line.  We use the last one.
 #
+echo "Getting prefix"
 prefix=`sed -n 's/%option[     ][      ]*prefix="\(.*\)".*/\1/p' "$@" | tail -1`
 if [ ! -z "$prefix" ]
 then
@@ -146,11 +150,13 @@ fi
 #
 # Construct the name of the header file.
 #
+echo "Getting header file name"
 header_file=`dirname "$outfile"`/`basename "$outfile" .c`_lex.h
 
 #
 # Spew out the declaration.
 #
+echo "Writing $header_file"
 cat <<EOF >$header_file
 /* This is generated by runlex.sh.  Do not edit it. */
 $prefixline