Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 424 Bytes
task :default => [:convert_js_to_h, :compile]
task :compile do
puts "Note: always set V8_BASEDIR to the folder of the V8 engine source"
sh "g++ -o jslint jslint.cpp -I$V8_BASEDIR/include/ -lv8 -L$V8_BASEDIR/lib -lpthread"
task :convert_js_to_h do
sh "ruby convert_to_h.rb print_vim.js > print_vim.h"
sh "ruby convert_to_h.rb print_human.js > print_human.h"
sh "ruby convert_to_h.rb jslint.js > jslint.h"
Something went wrong with that request. Please try again.