Mercurial > MadButterfly
view nodejs/run.sh @ 1165:9f2b5a1a0d84
Fix bug of unpredicatible output of tank.
- This issue was reported by an Ali guy. He find tank would generate
unpredicatible output when playing a boom.
- rdman_shape_path_new_from_binary() does not copy zero byte (\x00)
of command string. It is requested by sh_path_path() to detect end
of command string.
- Fixed by coping zero byte.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 29 Dec 2010 14:58:06 +0800 |
parents | bced6fe39856 |
children |
line wrap: on
line source
#!/bin/sh ABS=`realpath $0` if [ -z "$SRCDIR" ]; then SRCDIR=`dirname $ABS`/.. fi if [ -z "$BUILDDIR" ]; then BUILDDIR=`dirname $ABS`/.. fi NODE_PATH=${BUILDDIR}/nodejs/objs/default:${SRCDIR}/nodejs:$NODE_PATH export NODE_PATH LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${BUILDDIR}/src/.libs/ export LD_LIBRARY_PATH DIR=`dirname $1` FNAME=`basename $1` if [ -z "$DEBUG" ]; then cd $DIR; node $FNAME else # DEBUG cd $DIR; gdb -args node $FNAME fi