Mercurial > MadButterfly
view nodejs/run.sh @ 1423:d82a828e8e26
Optimize the performance. If properties is not changed, we don't call rdman_coord_changed.
author | wycc |
---|---|
date | Sat, 09 Apr 2011 03:36:51 +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