Skip to content

Commit

Permalink
rakefile updated
Browse files Browse the repository at this point in the history
  • Loading branch information
minad committed Aug 27, 2010
1 parent 1d72d2e commit 4ce4b99
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
task :default => :test
task :default => %w(test)

desc 'Run tests with bacon'
task :test => FileList['test/*_test.rb'] do |t|
sh "bacon -q -Ilib:test #{t.prerequisites.join(' ')}"
end

desc 'Generate mime tables'
task :tables => 'lib/mimemagic_tables.rb'
file 'lib/mimemagic_tables.rb' => FileList['script/freedesktop.org.xml'] do |f|
sh "script/generate-mime.rb #{f.prerequisites.join(' ')} > #{f.name}"
end

desc 'Generate documentation'
task :doc => 'doc/api/index.html'
file 'doc/api/index.html' => FileList['**/*.rb'] do |f|
sh "rdoc -o doc/api --title 'Git-Wiki Documentation' --inline-source --format=html #{f.prerequisites.join(' ')}"
end

0 comments on commit 4ce4b99

Please sign in to comment.