annotate tpc @ 235:cc1260872322

Fix printing of function/method calls in parser module
author Michael Pavone <pavone@retrodev.com>
date Fri, 03 Jan 2014 19:25:40 -0800
parents c801dccdb4fb
children
rev   line source
pavone@76 1 #!/bin/sh
pavone@76 2
pavone@76 3 args=
pavone@76 4 dir=`dirname $0`
pavone@76 5 while [ $# -gt 0 ]; do
pavone@76 6 if [ "-o" = "$1" ]; then
pavone@76 7 shift
pavone@76 8 output="$1"
pavone@76 9 else
pavone@76 10 args="$args $1"
pavone@76 11 fi
pavone@76 12 shift
pavone@76 13 done
pavone@76 14
pavone@76 15 if [ $output ]; then
pavone@76 16 if d8 $dir/tpc.js -- $args > $output; then
pavone@76 17 exit
pavone@76 18 else
pavone@76 19 code=$?
pavone@76 20 cat $output 1>&2
pavone@76 21 rm -f $output
pavone@76 22 exit $code
pavone@76 23 fi
pavone@76 24 else
pavone@76 25 d8 $dir/tpc.js -- $args
pavone@76 26 fi
pavone@76 27