Skip to content

Commit

Permalink
adding /usr/local/lib hardcoded versions of coffee and cake for the i…
Browse files Browse the repository at this point in the history
…nstall script
  • Loading branch information
jashkenas committed Feb 22, 2010
1 parent 07513ba commit 5d54123
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ task 'install', 'install CoffeeScript into /usr/local', ->
exec([
'mkdir -p /usr/local/lib/coffee-script'
'cp -rf bin lib LICENSE README package.json src vendor /usr/local/lib/coffee-script'
'ln -sf /usr/local/lib/coffee-script/bin/coffee /usr/local/bin/coffee'
'ln -sf /usr/local/lib/coffee-script/bin/cake /usr/local/bin/cake'
'ln -sf /usr/local/lib/coffee-script/lib/bin/coffee /usr/local/bin/coffee'
'ln -sf /usr/local/lib/coffee-script/lib/bin/cake /usr/local/bin/cake'
].join(' && '))


Expand Down
11 changes: 6 additions & 5 deletions documentation/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,15 @@ alert reverse '!tpircseeffoC'</textarea>
<a href="http://github.com/jashkenas/coffee-script">source repository</a>,
or download the latest
release: <a href="http://github.com/jashkenas/coffee-script/tarball/0.5.0">0.5.0</a>.
Then, from within the <tt>coffee-script</tt> directory, run:
Then, in order to install the CoffeeScript compiler system-wide
under <tt>/usr/local</tt>, run:
</p>

<pre>
sudo bin/cake install</pre>

<p>
Installing the gem provides the <tt>coffee</tt> command, which can
This provides the <tt>coffee</tt> command, which can
be used to compile CoffeeScript <tt>.coffee</tt> files into JavaScript, as
well as debug them. The <tt>coffee</tt>
command also provides direct evaluation and an interactive REPL.
Expand Down Expand Up @@ -742,9 +743,9 @@ coffee --print app/scripts/*.coffee > concatenation.js</pre>

<p>
<b class="header" style="margin-top: 20px;">0.5.0</b>
CoffeeScript 0.5.0 is a major update, and the first release that removes
the Ruby compiler entirely, in favor of a compiler written entirely in
CoffeeScript, and self-hosting.
CoffeeScript 0.5.0 is a major release, While there are no language changes,
the Ruby compiler has been removed in favor of a self-hosting
compiler written in pure CoffeeScript.
</p>

<p>
Expand Down
11 changes: 6 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,15 @@ <h2>
<a href="http://github.com/jashkenas/coffee-script">source repository</a>,
or download the latest
release: <a href="http://github.com/jashkenas/coffee-script/tarball/0.5.0">0.5.0</a>.
Then, from within the <tt>coffee-script</tt> directory, run:
Then, in order to install the CoffeeScript compiler system-wide
under <tt>/usr/local</tt>, run:
</p>

<pre>
sudo bin/cake install</pre>

<p>
Installing the gem provides the <tt>coffee</tt> command, which can
This provides the <tt>coffee</tt> command, which can
be used to compile CoffeeScript <tt>.coffee</tt> files into JavaScript, as
well as debug them. The <tt>coffee</tt>
command also provides direct evaluation and an interactive REPL.
Expand Down Expand Up @@ -1622,9 +1623,9 @@ <h2>

<p>
<b class="header" style="margin-top: 20px;">0.5.0</b>
CoffeeScript 0.5.0 is a major update, and the first release that removes
the Ruby compiler entirely, in favor of a compiler written entirely in
CoffeeScript, and self-hosting.
CoffeeScript 0.5.0 is a major release, While there are no language changes,
the Ruby compiler has been removed in favor of a self-hosting
compiler written in pure CoffeeScript.
</p>

<p>
Expand Down
7 changes: 7 additions & 0 deletions lib/bin/cake
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env node

process.mixin(require('sys'));

require.paths.unshift('/usr/local/lib/coffee-script/lib');

require('cake').run();
7 changes: 7 additions & 0 deletions lib/bin/coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env node

process.mixin(require('sys'));

require.paths.unshift('/usr/local/lib/coffee-script/lib');

require('command_line').run();

0 comments on commit 5d54123

Please sign in to comment.