forked from rock-core/autobuild
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
28 lines (23 loc) · 918 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'hoe'
require 'lib/autobuild'
Hoe.spec 'autobuild' do
developer "Sylvain Joyeux", "[email protected]"
self.summary = 'Rake-based utility to build and install multiple packages with dependencies'
self.description = self.paragraphs_of('README.txt', 2..5).join("\n\n")
self.url = self.paragraphs_of('README.txt', 1).first.split(/\n/)[1..-1].map { |s| s.gsub('* ', '') }
self.changes = self.paragraphs_of('Changes.txt', 0..2).join("\n\n")
self.extra_deps <<
['rake', '>= 0.7.0'] <<
['rmail', '>= 1.0'] <<
['daemons', '>= 0.0'] <<
['utilrb', '>= 1.3.3']
end
Rake.clear_tasks(/publish_docs/)
task 'publish_docs' => 'docs' do
if !system('./update_github')
raise "cannot update the gh-pages branch for GitHub"
end
if !system('git', 'push', 'origin', 'gh-pages')
raise "cannot push the documentation"
end
end