Skip to content

Commit

Permalink
* Rakefile: rdoc generates into doc/rdoc now.
Browse files Browse the repository at this point in the history
 * doc/camping.1.gz: basic man page.
 * bin/camping: help is now -?, version is -v.
  • Loading branch information
_why committed May 23, 2006
1 parent 32f2376 commit b9cdf1d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ task :before_doc do
end

Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'doc'
rdoc.rdoc_dir = 'doc/rdoc'
rdoc.options += RDOC_OPTS
rdoc.template = "extras/flipbook_rdoc.rb"
rdoc.main = "README"
Expand All @@ -38,9 +38,9 @@ end
task :after_doc do
mv "lib/camping.rb", "lib/camping-unabridged.rb"
mv "lib/camping-mural.rb", "lib/camping.rb"
cp "extras/Camping.gif", "doc/"
cp "extras/permalink.gif", "doc/"
sh %{scp -r doc/* #{ENV['USER']}@rubyforge.org:/var/www/gforge-projects/camping/}
cp "extras/Camping.gif", "doc/rdoc/"
cp "extras/permalink.gif", "doc/rdoc/"
sh %{scp -r doc/rdoc/* #{ENV['USER']}@rubyforge.org:/var/www/gforge-projects/camping/}
end

spec =
Expand All @@ -64,7 +64,7 @@ spec =
s.required_ruby_version = '>= 1.8.2'

s.files = %w(COPYING README Rakefile) +
Dir.glob("{bin,doc/rdoc,test,lib,extras}/**/*") +
Dir.glob("{bin,doc,test,lib,extras}/**/*") +
Dir.glob("ext/**/*.{h,c,rb}") +
Dir.glob("examples/**/*.rb") +
Dir.glob("tools/*.rb")
Expand Down
4 changes: 2 additions & 2 deletions bin/camping
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ opts = OptionParser.new do |opts|

# No argument, shows at tail. This will print an options summary.
# Try it and see!
opts.on_tail("-h", "--help", "Show this message") do
opts.on_tail("-?", "--help", "Show this message") do
puts opts
exit
end

# Another typical switch to print the version.
opts.on_tail("--version", "Show version") do
opts.on_tail("-v", "--version", "Show version") do
class << Gem; attr_accessor :loaded_specs; end
puts Gem.loaded_specs['camping'].version
exit
Expand Down
Binary file added doc/camping.1.gz
Binary file not shown.

0 comments on commit b9cdf1d

Please sign in to comment.