Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 38 lines (30 sloc) 0.79 kB
b6a2f98 @aanand Initial commit to git-up.
authored
1 task :default => :test
2
46c9418 @aanand rake gem task
authored
3 task :gem do
4 sh "rm -r pkg/*"
5 sh "gem build git-up.gemspec"
6 sh "mv git-up-*.gem pkg"
7 puts "Built " + Dir.glob("pkg/*.gem")[0]
8 end
9
3de8e37 @aanand Pretty sure I wasn't using those tasks anyway.
authored
10 require 'rdoc/task'
b6a2f98 @aanand Initial commit to git-up.
authored
11 Rake::RDocTask.new do |rdoc|
12 version = File.exist?('VERSION') ? File.read('VERSION') : ""
13
14 rdoc.rdoc_dir = 'rdoc'
15 rdoc.title = "git-up #{version}"
16 rdoc.rdoc_files.include('README*')
17 rdoc.rdoc_files.include('lib/**/*.rb')
18 end
ada6066 @aanand Man page (see #48)
authored
19
20 task :man do
21 require 'tempfile'
22
23 markdown = File.read("README.md")
24 markdown.gsub!(/^!\[(.+)\]\(.*\)/, ' \1')
25
26 Tempfile.open('README') do |f|
27 f.write(markdown)
28 f.flush
29 sh "ronn --pipe --roff #{f.path} > man/git-up.1"
30 end
31 end
d6f309d @aanand Build HTML man page with ronn
authored
32
33 task :html do
34 sh "rm -rf html"
35 sh "mkdir html"
36 sh "ronn --pipe --html --style=toc README.md > html/index.html"
37 end
Something went wrong with that request. Please try again.