Mercurial > MadButterfly
annotate 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 |
rev | line source |
---|---|
939
a74b4d986a91
Move examples for nodejs into nodejs/examples/ sub-directories.
Thinker K.F. Li <thinker@codemud.net>
parents:
diff
changeset
|
1 #!/bin/sh |
a74b4d986a91
Move examples for nodejs into nodejs/examples/ sub-directories.
Thinker K.F. Li <thinker@codemud.net>
parents:
diff
changeset
|
2 |
a74b4d986a91
Move examples for nodejs into nodejs/examples/ sub-directories.
Thinker K.F. Li <thinker@codemud.net>
parents:
diff
changeset
|
3 ABS=`realpath $0` |
1094
613a7caa9bd6
Dynamic link libmbfly.so against nodejs plugin
Thinker K.F. Li <thinker@codemud.net>
parents:
940
diff
changeset
|
4 if [ -z "$SRCDIR" ]; then |
613a7caa9bd6
Dynamic link libmbfly.so against nodejs plugin
Thinker K.F. Li <thinker@codemud.net>
parents:
940
diff
changeset
|
5 SRCDIR=`dirname $ABS`/.. |
613a7caa9bd6
Dynamic link libmbfly.so against nodejs plugin
Thinker K.F. Li <thinker@codemud.net>
parents:
940
diff
changeset
|
6 fi |
613a7caa9bd6
Dynamic link libmbfly.so against nodejs plugin
Thinker K.F. Li <thinker@codemud.net>
parents:
940
diff
changeset
|
7 if [ -z "$BUILDDIR" ]; then |
613a7caa9bd6
Dynamic link libmbfly.so against nodejs plugin
Thinker K.F. Li <thinker@codemud.net>
parents:
940
diff
changeset
|
8 BUILDDIR=`dirname $ABS`/.. |
613a7caa9bd6
Dynamic link libmbfly.so against nodejs plugin
Thinker K.F. Li <thinker@codemud.net>
parents:
940
diff
changeset
|
9 fi |
613a7caa9bd6
Dynamic link libmbfly.so against nodejs plugin
Thinker K.F. Li <thinker@codemud.net>
parents:
940
diff
changeset
|
10 |
613a7caa9bd6
Dynamic link libmbfly.so against nodejs plugin
Thinker K.F. Li <thinker@codemud.net>
parents:
940
diff
changeset
|
11 NODE_PATH=${BUILDDIR}/nodejs/objs/default:${SRCDIR}/nodejs:$NODE_PATH |
939
a74b4d986a91
Move examples for nodejs into nodejs/examples/ sub-directories.
Thinker K.F. Li <thinker@codemud.net>
parents:
diff
changeset
|
12 export NODE_PATH |
a74b4d986a91
Move examples for nodejs into nodejs/examples/ sub-directories.
Thinker K.F. Li <thinker@codemud.net>
parents:
diff
changeset
|
13 |
1094
613a7caa9bd6
Dynamic link libmbfly.so against nodejs plugin
Thinker K.F. Li <thinker@codemud.net>
parents:
940
diff
changeset
|
14 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${BUILDDIR}/src/.libs/ |
613a7caa9bd6
Dynamic link libmbfly.so against nodejs plugin
Thinker K.F. Li <thinker@codemud.net>
parents:
940
diff
changeset
|
15 export LD_LIBRARY_PATH |
613a7caa9bd6
Dynamic link libmbfly.so against nodejs plugin
Thinker K.F. Li <thinker@codemud.net>
parents:
940
diff
changeset
|
16 |
939
a74b4d986a91
Move examples for nodejs into nodejs/examples/ sub-directories.
Thinker K.F. Li <thinker@codemud.net>
parents:
diff
changeset
|
17 DIR=`dirname $1` |
a74b4d986a91
Move examples for nodejs into nodejs/examples/ sub-directories.
Thinker K.F. Li <thinker@codemud.net>
parents:
diff
changeset
|
18 FNAME=`basename $1` |
a74b4d986a91
Move examples for nodejs into nodejs/examples/ sub-directories.
Thinker K.F. Li <thinker@codemud.net>
parents:
diff
changeset
|
19 |
1095
bced6fe39856
Fix position (collision) detection for OpenVG.
Thinker K.F. Li <thinker@codemud.net>
parents:
1094
diff
changeset
|
20 if [ -z "$DEBUG" ]; then |
bced6fe39856
Fix position (collision) detection for OpenVG.
Thinker K.F. Li <thinker@codemud.net>
parents:
1094
diff
changeset
|
21 cd $DIR; node $FNAME |
bced6fe39856
Fix position (collision) detection for OpenVG.
Thinker K.F. Li <thinker@codemud.net>
parents:
1094
diff
changeset
|
22 else |
bced6fe39856
Fix position (collision) detection for OpenVG.
Thinker K.F. Li <thinker@codemud.net>
parents:
1094
diff
changeset
|
23 # DEBUG |
bced6fe39856
Fix position (collision) detection for OpenVG.
Thinker K.F. Li <thinker@codemud.net>
parents:
1094
diff
changeset
|
24 cd $DIR; gdb -args node $FNAME |
bced6fe39856
Fix position (collision) detection for OpenVG.
Thinker K.F. Li <thinker@codemud.net>
parents:
1094
diff
changeset
|
25 fi |