Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (21 sloc) 633 Bytes
require 'tasks/helpers'
desc "mirror to jquery svn repository"
task :mirror do
name = File.basename(Dir.pwd).gsub(/[^-]+-/,'').gsub(/(^uitable)(.)/) do
"uiTable#{$2.upcase}"
end
svn_dir = "/home/greg/src/jqueryjs/plugins/#{name}/"
puts "copying to directory: #{svn_dir}"
out "cp -R * #{svn_dir}"
commit_msg = `git log | head -5 | tail -1`.chomp
Dir.chdir(svn_dir) do
out "svn commit -m '#{commit_msg}'"
end
end
desc "run test"
task :test do
test_files = Dir[ 'test/*_spec.html' ].join(' ')
run( "#{ENV['BROWSER'] || 'konqueror'} #{test_files}" ) do |r,s|
run( "#{SAFARI} #{test_files}" )
end
end