Mercurial > MadButterfly
view nodejs/run.sh @ 1428:43369f3314d8
Fix the issue of loading components from SVG.
- Users can not switch to components in the document that was loaded
from previously saved SVG file.
- Scribboo can not find components with names listed in the component
list.
- It is because that Scribboo is fault to use node name of
ns0:component instead of 'name' attribute as component name.
- It is fixed by using 'name' attribute of ns0:component node.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sun, 10 Apr 2011 15:28:33 +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