annotate nodejs/run.sh @ 1535:9aff42a7e2b9 tip

Fix issue of add/remove a frame at a scene before all key frames of a layer. When you added or removed a frame at a scene before all key frames of a layer, frameline was not updated correctly. It seems nothing happened, but domview is updated. This changeset fix this issue by correcting logic for boundary case.
author Thinker K.F. Li <thinker@codemud.net>
date Fri, 30 Sep 2011 22:07:28 +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