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 | 838fee7e21873bce43e5c254365e683f6ab3dc5c (patch) | |
tree | fc3acefbe43508fe2dfa0ab61d716138ca120797 /instruby.rb | |
parent | 5b8ca7ae2af81e2ec08c0180bfc7094008830134 (diff) | |
download | ruby-838fee7e21873bce43e5c254365e683f6ab3dc5c.tar.gz ruby-838fee7e21873bce43e5c254365e683f6ab3dc5c.tar.xz ruby-838fee7e21873bce43e5c254365e683f6ab3dc5c.zip |
* man/ruby.1: moved into man/. added some descriptions.
* man/goruby.1: new file.
* instruby.rb (:man): followed ruby.1.
git-svn-id: http://svn.ruby-lang.org/repos/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 02b74c4eb..634e86d06 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 |