Merge branch 'master' of github.com:wycats/handlebars.js

This commit is contained in:
tomhuda
2011-02-25 22:36:49 -08:00
2 changed files with 7 additions and 2 deletions
+1
View File
@@ -2,3 +2,4 @@ dist
lib/handlebars/parser.js
vendor
.rvmrc
.DS_Store
+6 -2
View File
@@ -2,8 +2,12 @@ require "rubygems"
require "bundler/setup"
file "lib/handlebars/parser.js" => ["src/handlebars.yy","src/handlebars.l"] do
system "jison src/handlebars.yy src/handlebars.l"
sh "mv handlebars.js lib/handlebars/parser.js"
if ENV['PATH'].split(':').any? {|folder| File.exists?(folder+'/jison')}
system "jison src/handlebars.yy src/handlebars.l"
sh "mv handlebars.js lib/handlebars/parser.js"
else
puts "Jison is not installed. Try running `npm install jison`."
end
end
task :compile => "lib/handlebars/parser.js"