diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-25 15:15:24 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-25 15:15:24 +0000 |
commit | 92d172e9c3814860fdec497feeb7462e874d7e60 (patch) | |
tree | fc3acefbe43508fe2dfa0ab61d716138ca120797 /instruby.rb | |
parent | 357a0ddc9e5c768916e70248a64d7b58a996c9eb (diff) | |
download | ruby-92d172e9c3814860fdec497feeb7462e874d7e60.tar.gz |
* man/ruby.1: moved into man/. added some descriptions.
* man/goruby.1: new file.
* instruby.rb (:man): followed ruby.1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'instruby.rb')
-rwxr-xr-x | instruby.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/instruby.rb b/instruby.rb index 02b74c4ebe..634e86d069 100755 --- a/instruby.rb +++ b/instruby.rb @@ -368,12 +368,18 @@ end install?(:local, :comm, :man) do puts "installing manpages" - Dir.chdir(srcdir) + has_goruby = File.exist?(goruby_install_name+exeext) + Dir.chdir("#{srcdir}/man") for mdoc in Dir["*.[1-9]"] next unless File.file?(mdoc) and open(mdoc){|fh| fh.read(1) == '.'} + if mdoc == "goruby.1" + next unless has_goruby + end destdir = mandir + mdoc[/(\d+)$/] - destfile = File.join(destdir, mdoc.sub(/ruby/, ruby_install_name)) + section = $1 + destname = ruby_install_name.sub(/ruby/, File.basename(mdoc, ".#{section}")) + destfile = File.join(destdir, "#{destname}.#{section}") makedirs destdir |