From 5d541232efec8de0aa3de74a4e1196e33a7dbd33 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Sun, 21 Feb 2010 19:19:58 -0500 Subject: [PATCH] adding /usr/local/lib hardcoded versions of coffee and cake for the install script --- Cakefile | 4 ++-- documentation/index.html.erb | 11 ++++++----- index.html | 11 ++++++----- lib/bin/cake | 7 +++++++ lib/bin/coffee | 7 +++++++ 5 files changed, 28 insertions(+), 12 deletions(-) create mode 100755 lib/bin/cake create mode 100755 lib/bin/coffee diff --git a/Cakefile b/Cakefile index 193e967b..cd66833c 100644 --- a/Cakefile +++ b/Cakefile @@ -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(' && ')) diff --git a/documentation/index.html.erb b/documentation/index.html.erb index 5438aa4c..fdfcc63a 100644 --- a/documentation/index.html.erb +++ b/documentation/index.html.erb @@ -149,14 +149,15 @@ alert reverse '!tpircseeffoC' source repository, or download the latest release: 0.5.0. - Then, from within the coffee-script directory, run: + Then, in order to install the CoffeeScript compiler system-wide + under /usr/local, run:

 sudo bin/cake install

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

0.5.0 - 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.

diff --git a/index.html b/index.html index ca02dac0..2d4a7b51 100644 --- a/index.html +++ b/index.html @@ -246,14 +246,15 @@ cubed_list = (function() { source repository, or download the latest release: 0.5.0. - Then, from within the coffee-script directory, run: + Then, in order to install the CoffeeScript compiler system-wide + under /usr/local, run:

 sudo bin/cake install

- Installing the gem provides the coffee command, which can + This provides the coffee command, which can be used to compile CoffeeScript .coffee files into JavaScript, as well as debug them. The coffee command also provides direct evaluation and an interactive REPL. @@ -1622,9 +1623,9 @@ task('test

0.5.0 - 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.

diff --git a/lib/bin/cake b/lib/bin/cake new file mode 100755 index 00000000..524bdd16 --- /dev/null +++ b/lib/bin/cake @@ -0,0 +1,7 @@ +#!/usr/bin/env node + +process.mixin(require('sys')); + +require.paths.unshift('/usr/local/lib/coffee-script/lib'); + +require('cake').run(); diff --git a/lib/bin/coffee b/lib/bin/coffee new file mode 100755 index 00000000..e33e472b --- /dev/null +++ b/lib/bin/coffee @@ -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();