From b9cdf1d4e855be24b9f41c71ec476586ad7d2d28 Mon Sep 17 00:00:00 2001 From: _why Date: Tue, 23 May 2006 22:56:53 +0000 Subject: [PATCH] * Rakefile: rdoc generates into doc/rdoc now. * doc/camping.1.gz: basic man page. * bin/camping: help is now -?, version is -v. --- Rakefile | 10 +++++----- bin/camping | 4 ++-- doc/camping.1.gz | Bin 0 -> 918 bytes 3 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 doc/camping.1.gz diff --git a/Rakefile b/Rakefile index c0e7a17..11898ae 100644 --- a/Rakefile +++ b/Rakefile @@ -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" @@ -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 = @@ -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") diff --git a/bin/camping b/bin/camping index cbb5d2f..c169cc2 100755 --- a/bin/camping +++ b/bin/camping @@ -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 diff --git a/doc/camping.1.gz b/doc/camping.1.gz new file mode 100644 index 0000000000000000000000000000000000000000..b67490371de608da8911deccc4594d6988c40904 GIT binary patch literal 918 zcmV;H18MvpiwFoakaI);17l%raA|I5E-?U&RNrsgHV}T-UvbDwuoj zEFk`Y$N@IYMN3I1iwi|+BxOS{{o8k>bt-raY1-+jk$dj>!Cn`1MC*RVlcH_Nspjxfw~7Uz_iby4wzkoL8M4|{%J7u-|-*_H*=Uy z7VBvF2aMrt!5X-{8p7qp#m6&`xE9C^VPyZ*)QK&)fs9$oU7*B0CDXX)hRYqDLN=lY$WrmO|7n7q#nc}r~3T1JmGvkIO0-o7 zhrrx|tC#1^i!Etw-8EPR39;4sGGblxU16z8z2nk!W#w6@LP#{S=hneg@LArTILP;7z_PN9cWrBMY;~lLOob`WdHOQ#6jt2?-~EKT&?3M4#GR=0)p@{g1V6haAEUKXY4E^mnHET@qYkVkMqFy@ZSS;Ps#;oCnyX3WUN6(GT0%Dz zV=QK%q&KCiq~0<|g_jd-@K30X6E&&dZ9=KEcO#Ch=l{TIpe}Zs-+ew5BvVR!yUo{b zz#e0pN3RWNX#0?A{I_;`G)@;>?o~#kQnYY6OVP`NTPAo)qr>BS{1)#*2|t68fHJn6p|~pha^;MQby70j;Rh zo8{BuaSut$%o5u0n=jErUuQN5?mL51HNHmp@geL~6J|*d zCDiT&=rZAb5X&GF`b^|a}63KZ3wSC(*oqmsC(1kIj-cPY`B z_Oa;#scS>(eG|Cv1D!T1t#-5w&^d=eyAiV)OdjG@FjZwG=7Zf5StJtj7ib0PsV{r2qf` literal 0 HcmV?d00001