annotate nodejs/run.sh @ 1192:79a3f82edaac

Fix issue of losing keyframe after inerst a node in the scene
author Thinker K.F. Li <thinker@codemud.net>
date Sun, 02 Jan 2011 14:18:48 +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