# HG changeset patch # User Thinker K.F. Li # Date 1281529628 -28800 # Node ID 78a01b0d3fc9d28bb3b91aff654147b7ebdf2f2c # Parent 4ca7a7ad7364b4a7d10584c64685417782ecfebc Rename README to README.svg diff -r 4ca7a7ad7364 -r 78a01b0d3fc9 nodejs/README --- a/nodejs/README Wed Aug 11 20:21:44 2010 +0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,24 +0,0 @@ -svg.js: -=============== - -The sample code to load an SVG file. It requires the libxml, which is -available at http://github.com/polotek/libxmljs/tree/refactor. Please -copy the libxmljs.node to the objs/default if you want to test the -libxml+mbfly without installing them into the system. The path can be -defined by the NODE_PATH environment variable. - -(1) Compile MadButterfly with nodejs support - ~user/MadButterfly$ ./configure --enable-nodejs; make - -(2) Compile libxml - ~user/MadButterfly/nodejs$ git clone http://github.com/polotek/libxmljs.git - ~user/MadButterfly/nodejs$ cd libxml; make; cd .. - -(3) Copy the libxml.node to the nodejs build directory - ~user/MadButterfly/nodejs$ cp libxml/libxml.node objs/default -(4) Set the path - ~user/MadButterfly/nodejs$ export NODE_PATH=objs/default - -(5) Execute svg.js - ~user/MadButterfly/nodejs$ node svg.js - diff -r 4ca7a7ad7364 -r 78a01b0d3fc9 nodejs/README.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nodejs/README.svg Wed Aug 11 20:27:08 2010 +0800 @@ -0,0 +1,24 @@ +svg.js: +=============== + +The sample code to load an SVG file. It requires the libxml, which is +available at http://github.com/polotek/libxmljs/tree/refactor. Please +copy the libxmljs.node to the objs/default if you want to test the +libxml+mbfly without installing them into the system. The path can be +defined by the NODE_PATH environment variable. + +(1) Compile MadButterfly with nodejs support + ~user/MadButterfly$ ./configure --enable-nodejs; make + +(2) Compile libxml + ~user/MadButterfly/nodejs$ git clone http://github.com/polotek/libxmljs.git + ~user/MadButterfly/nodejs$ cd libxml; make; cd .. + +(3) Copy the libxml.node to the nodejs build directory + ~user/MadButterfly/nodejs$ cp libxml/libxml.node objs/default +(4) Set the path + ~user/MadButterfly/nodejs$ export NODE_PATH=objs/default + +(5) Execute svg.js + ~user/MadButterfly/nodejs$ node svg.js +