@@ -47,12 +47,47 @@ In order to build the CSSOM related specification, you must install and
4747configure the following:
4848
4949* node.js (http://nodejs.org)
50- * webidl.js [customized] (http://github.com/skynavga/webidl.js)
51- - must be loadable from node via require()
5250* html5.js (http://github.com/aredridel/html5)
5351 - must be loadable from node via require()
52+ * webidl.js [customized] (http://github.com/skynavga/webidl.js)
53+ - must be loadable from node via require()
5454* anolis (http://wiki.whatwg.org/wiki/Anolis)
5555
56+ The following shows a detailed version (with comments) of the above steps
57+ performed on MacOSX 10.8.2, assuming your current directory is the same
58+ directory that contains this README:
59+
60+ # Start from CSSOM directory.
61+ % export CSSOM_HOME=`pwd`
62+
63+ # Make tools directory if needed.
64+ % if [ ! -d tools ] ; then mkdir tools ; fi
65+ % export CSSOM_TOOLS=$CSSOM_HOME/tools
66+ % cd $CSSOM_TOOLS
67+
68+ # Fetch node.js 0.10.0
69+ % wget http://nodejs.org/dist/v0.10.0/ $CSSOM_TOOLS/node-v0.10.0.pkg
70+
71+ # Install node.js 0.10.0
72+ % open $CSSOM_TOOLS/node-v0.10.0.pkg
73+
74+ # Fetch html5.js
75+ % git clone http://dinhe.net/~aredridel/projects/js/html5.git/ $CSSOM_TOOLS/html5.js
76+
77+ # Install local user copy of html5 (in ~/.npm and ~/node_modules).
78+ % (cd $HOME; npm install $CSSOM_TOOLS/html5.js)
79+
80+ # Fetch (customized) webidl.js
81+ % git clone http://github.com/skynavga/webidl.js $CSSOM_TOOLS/webidl.js
82+
83+ # Ensure node.js can access webidl.js
84+ % if [ ! -d $HOME/.node_libraries ] ; then mkdir $HOME/.node_libraries ; fi
85+ % ln -s $CSSOM_TOOLS/webidl.js/node/node/WebIDLParser.js
86+
87+ # Fetch anolis and make sure it is in $PATH.
88+ % hg clone https://bitbucket.org/ms2ger/anolis $CSSOM_TOOLS/anolis
89+ % sudo ln -s $CSSOM_TOOLS/anolis/anolis /usr/local/bin/anolis
90+
5691COMMITTING CHANGES
5792
58931. hg pull
0 commit comments