3
# Get this from environment if available, or use a default working
4
# when invoked by build-dir.
5
# Better yet might be generating this file on make check..
7
GPROCESSOR=${GPROCESSOR:=../../utilities/gprocessor}
9
# NOTE: We're supposed to advance 10 frames.
10
# We allow 11 loop-backs (just for fun, we probably can support more)
15
echo "Usage: `basename $0` <swffile> [<flags>]" >&2
23
out=`basename "${in}"`.trace-gnash
24
logout=`basename "${in}"`.out
25
logerr=`basename "${in}"`.err
28
echo "Running ${GPROCESSOR} ${FLAGS} ${in}" >&2
29
${GPROCESSOR} ${FLAGS} "$in" > $logout 2> $logerr
30
if test "$?" != 0; then
31
echo "gprocessor returned an error"
35
grep TRACE -A1 ${logout} | sed '/^--$/d; s/.*TRACE: //; /\n*[0-9][0-9]*\].*/d; s/^$//;' > $out