Mercurial > MadButterfly
annotate nodejs/run.sh @ 967:5c013e3cadd0
Provide the facility to stop drawing for massive content update.
To stop drawing screen when doing massive cotent update makes
application more efficient. frameline.stop_drawing() method is called
to stop drawing screen before massive updating. After updating,
start_drawing() and update() should be called to show latest content.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Thu, 18 Nov 2010 11:37:21 +0800 |
parents | 652199a55802 |
children | 613a7caa9bd6 |
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` |
a74b4d986a91
Move examples for nodejs into nodejs/examples/ sub-directories.
Thinker K.F. Li <thinker@codemud.net>
parents:
diff
changeset
|
4 BASE=`dirname $ABS` |
940
652199a55802
Add objs/default to NODE_PATH in run.sh
Thinker K.F. Li <thinker@codemud.net>
parents:
939
diff
changeset
|
5 NODE_PATH=$BASE:$BASE/objs/default:$NODE_PATH |
939
a74b4d986a91
Move examples for nodejs into nodejs/examples/ sub-directories.
Thinker K.F. Li <thinker@codemud.net>
parents:
diff
changeset
|
6 export NODE_PATH |
a74b4d986a91
Move examples for nodejs into nodejs/examples/ sub-directories.
Thinker K.F. Li <thinker@codemud.net>
parents:
diff
changeset
|
7 |
a74b4d986a91
Move examples for nodejs into nodejs/examples/ sub-directories.
Thinker K.F. Li <thinker@codemud.net>
parents:
diff
changeset
|
8 DIR=`dirname $1` |
a74b4d986a91
Move examples for nodejs into nodejs/examples/ sub-directories.
Thinker K.F. Li <thinker@codemud.net>
parents:
diff
changeset
|
9 FNAME=`basename $1` |
a74b4d986a91
Move examples for nodejs into nodejs/examples/ sub-directories.
Thinker K.F. Li <thinker@codemud.net>
parents:
diff
changeset
|
10 |
a74b4d986a91
Move examples for nodejs into nodejs/examples/ sub-directories.
Thinker K.F. Li <thinker@codemud.net>
parents:
diff
changeset
|
11 cd $DIR; node $FNAME |