Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Better names for manpage tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Oct 20, 2010
1 parent 80c8324 commit 2c82b5e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ begin
t.rspec_opts = %w(-fs --color)
t.ruby_opts = %w(-w)
end
task :spec => :build
task :spec => "man:build"

namespace :ci do
desc "Run specs without color"
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = %w(-fs)
t.ruby_opts = %w(-w)
end
task :spec => :build
task :spec => "man:build"
end

namespace :spec do
Expand Down Expand Up @@ -121,11 +121,11 @@ namespace :man do
sh "groff -Wall -mtty-char -mandoc -Tascii #{roff} | col -b > #{roff}.txt"
end

task :build_pages => "#{roff}.txt"
task :build_all_pages => "#{roff}.txt"
end

desc "Build the man pages"
task :build => "man:build_pages"
task :build => "man:build_all_pages"

desc "Clean up from the built man pages"
task :clean do
Expand All @@ -147,6 +147,4 @@ namespace :vendor do
end
end

task :build => "man:build"

task :default => :spec

0 comments on commit 2c82b5e

Please sign in to comment.