[Pkg-javascript-commits] [backbone] 02/12: merging in zmack's enhanced Rakefile

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 16:59:40 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.3.3
in repository backbone.

commit 9994d2bab814cee33d4832d4f9f9324212edd71b
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Sat Nov 27 10:24:39 2010 -0800

    merging in zmack's enhanced Rakefile
---
 Rakefile | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

diff --git a/Rakefile b/Rakefile
index a77c97d..f0b0cf6 100644
--- a/Rakefile
+++ b/Rakefile
@@ -7,7 +7,7 @@ task :build do
   begin
     require 'closure-compiler'
   rescue LoadError
-    puts %{closure-compiler not found.\nInstall it by running 'gem install closure-compiler'}
+    puts "closure-compiler not found.\nInstall it by running 'gem install closure-compiler"
     exit
   end
   source = File.read 'backbone.js'
@@ -19,12 +19,8 @@ end
 
 desc "build the docco documentation"
 task :doc do
-  check('docco', 'docco', 'https://github.com/jashkenas/docco')
-
-  system [
-    'docco backbone.js',
-    'docco examples/todos/todos.js examples/backbone-localstorage.js'
-  ].join(' && ')
+  check 'docco', 'docco', 'https://github.com/jashkenas/docco'
+  system 'docco backbone.js && docco examples/todos/todos.js examples/backbone-localstorage.js'
 end
 
 desc "run JavaScriptLint on the source"
@@ -34,15 +30,13 @@ end
 
 desc "test the CoffeeScript integration"
 task :test do
-  check('coffee', 'CoffeeScript', 'https://github.com/jashkenas/coffee-script.git')
-
+  check 'coffee', 'CoffeeScript', 'https://github.com/jashkenas/coffee-script.git'
   system "coffee test/*.coffee"
 end
 
-
+# Check for the existence of an executable.
 def check(exec, name, url)
   return unless `which #{exec}`.empty?
-
-  puts "#{name} not found.\nGet it from #{url}"
+  puts "#{name} not found.\nInstall it from #{url}"
   exit
 end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git



More information about the Pkg-javascript-commits mailing list