Skip to content

Commit

Permalink
Add rake generate_man rake task.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Jackson committed Dec 21, 2012
1 parent 28a43fe commit d47f3e8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Rakefile
Expand Up @@ -95,6 +95,19 @@ task :profile do
Pry.start(TOPLEVEL_BINDING, :input => StringIO.new('exit'))
end

desc "Generate man page."
task :generate_man_page do
root_path = File.expand_path(File.join(File.dirname(__FILE__)))
gpm_path = File.join(root_path, "man", "generate_pry_man")
if File.directory?(gpm_path)
$:.unshift gpm_path
require 'generate_pry_man'
end

gpm = GeneratePryMan.new
gpm.copy_files_to_man_dir(File.join(root_path, "man"))
end

desc "Build the gemspec file"
task :gemspec => "ruby:gemspec"

Expand Down

0 comments on commit d47f3e8

Please sign in to comment.