2015-10-12 10:46:17 -07:00
|
|
|
current_dir = File.dirname(__FILE__)
|
|
|
|
rakefile_manual = File.expand_path(File.join(current_dir, "Rakefile.manual"))
|
|
|
|
rakefile_website = File.expand_path(File.join(current_dir, "Rakefile.website"))
|
2012-09-18 17:51:53 +01:00
|
|
|
|
2015-10-12 10:42:15 -07:00
|
|
|
desc "Build the manpage from the bonsai source of the manual"
|
|
|
|
task :manpage do
|
|
|
|
system %(#{$0} -f #{rakefile_manual} manpage)
|
2012-09-18 17:51:53 +01:00
|
|
|
end
|
|
|
|
|
2015-10-12 10:42:15 -07:00
|
|
|
desc "Collect jq unit test cases from the bonsai source of the manual"
|
|
|
|
task :mantests do
|
|
|
|
system %(#{$0} -f #{rakefile_manual} mantests)
|
2012-09-18 17:51:53 +01:00
|
|
|
end
|
2012-09-19 01:03:05 +01:00
|
|
|
|
2015-10-12 10:21:16 -07:00
|
|
|
desc "Build the website from the bonsai sources"
|
2012-09-19 01:03:05 +01:00
|
|
|
task :build do
|
2015-10-12 10:42:15 -07:00
|
|
|
system %(#{$0} -f #{rakefile_website} build)
|
2012-12-16 13:06:03 +00:00
|
|
|
end
|
|
|
|
|
2015-10-12 10:42:15 -07:00
|
|
|
desc "Serve a live view of the website on http://localhost:5000/jq/"
|
|
|
|
task :serve do
|
|
|
|
system %(#{$0} -f #{rakefile_website} serve)
|
2012-12-16 13:06:03 +00:00
|
|
|
end
|
|
|
|
|