Mercurial > MadButterfly
view nodejs/run.sh @ 1415:f34d2fcbcd0d
Revert changeset #88c8c874f4b8.
#88c8c874f4b8 try to fix crashing, but it blame to wrong code. If you
look into runtime stack of xnjsmb_coord_remove(), you will find self
argument is already wrong. It is in an invalid address.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 06 Apr 2011 15:13:09 +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