Mercurial > MadButterfly
view nodejs/run.sh @ 1421:84368f4bc988
Fix issue of rdman->w and rdman->h always being zeor.
It is reported by wycc in mailing list. w and h of rdman are assigned
before rdman being initialized. But, initialization would clear full
block of memory. So, they should be assigned after initialization.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Fri, 08 Apr 2011 09:47:00 +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