* 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
This commit is contained in:
parent
357a0ddc9e
commit
92d172e9c3
@ -1,3 +1,11 @@
|
|||||||
|
Sun Oct 26 00:11:48 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||||
|
|
||||||
|
* man/ruby.1: moved into man/. added some descriptions.
|
||||||
|
|
||||||
|
* man/goruby.1: new file.
|
||||||
|
|
||||||
|
* instruby.rb (:man): followed ruby.1.
|
||||||
|
|
||||||
Sat Oct 25 20:05:22 2008 Narihiro Nakamura <authorNari@gmail.com>
|
Sat Oct 25 20:05:22 2008 Narihiro Nakamura <authorNari@gmail.com>
|
||||||
|
|
||||||
* gc.c (gc_profile_result): bug fix. The millisecond is 1/1000.
|
* gc.c (gc_profile_result): bug fix. The millisecond is 1/1000.
|
||||||
|
10
instruby.rb
10
instruby.rb
@ -368,12 +368,18 @@ end
|
|||||||
install?(:local, :comm, :man) do
|
install?(:local, :comm, :man) do
|
||||||
puts "installing manpages"
|
puts "installing manpages"
|
||||||
|
|
||||||
Dir.chdir(srcdir)
|
has_goruby = File.exist?(goruby_install_name+exeext)
|
||||||
|
Dir.chdir("#{srcdir}/man")
|
||||||
for mdoc in Dir["*.[1-9]"]
|
for mdoc in Dir["*.[1-9]"]
|
||||||
next unless File.file?(mdoc) and open(mdoc){|fh| fh.read(1) == '.'}
|
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+)$/]
|
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
|
makedirs destdir
|
||||||
|
|
||||||
|
39
man/goruby.1
Normal file
39
man/goruby.1
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
.\"Ruby is copyrighted by Yukihiro Matsumoto <matz@netlab.jp>.
|
||||||
|
.Dd October 25, 2008
|
||||||
|
.Dt GORUBY(1) "" "Ruby Programmers Reference Guide"
|
||||||
|
.Os UNIX
|
||||||
|
.Sh NAME
|
||||||
|
.Nm goruby
|
||||||
|
.Nd Code-golfer's best friend
|
||||||
|
.Sh SYNOPSIS
|
||||||
|
.Nm
|
||||||
|
.Op options ...
|
||||||
|
.Op Fl -
|
||||||
|
.Op Ar program_file
|
||||||
|
.Op Ar argument ...
|
||||||
|
.Sh DESCRIPTION
|
||||||
|
.Sy goruby
|
||||||
|
is a kind of Ruby language processor,
|
||||||
|
which recognizes extremely shorten programs as bellow;
|
||||||
|
.Bd -literal -offset indent
|
||||||
|
rq"date";s De.td
|
||||||
|
.Ed
|
||||||
|
.Pp
|
||||||
|
This means
|
||||||
|
.Bd -literal -offset indent
|
||||||
|
require"date";puts Date.today
|
||||||
|
.Ed
|
||||||
|
.Pp
|
||||||
|
.Sh OPTIONS
|
||||||
|
.Sy goruby
|
||||||
|
takes same options as
|
||||||
|
.Xr ruby 1 .
|
||||||
|
.Sh SEE ALSO
|
||||||
|
.Bl -hang -compact -width "ruby(1)"
|
||||||
|
.It Xr ruby 1
|
||||||
|
The stiff version of Ruby interpreter.
|
||||||
|
.El
|
||||||
|
.Pp
|
||||||
|
.Sh AUTHORS
|
||||||
|
Originally written by Nobuyoshi Nakada and developed by
|
||||||
|
Ruby core team.
|
@ -1,5 +1,5 @@
|
|||||||
.\"Ruby is copyrighted by Yukihiro Matsumoto <matz@netlab.jp>.
|
.\"Ruby is copyrighted by Yukihiro Matsumoto <matz@netlab.jp>.
|
||||||
.Dd December 31, 2002
|
.Dd October 25, 2008
|
||||||
.Dt RUBY(1) "" "Ruby Programmers Reference Guide"
|
.Dt RUBY(1) "" "Ruby Programmers Reference Guide"
|
||||||
.\".Dt RUBY 1
|
.\".Dt RUBY 1
|
||||||
.Os UNIX
|
.Os UNIX
|
||||||
@ -484,3 +484,5 @@ via the system because it publishes the vulnerabilities immedately.
|
|||||||
.Sh AUTHORS
|
.Sh AUTHORS
|
||||||
Ruby is designed and implemented by
|
Ruby is designed and implemented by
|
||||||
.An Yukihiro Matsumoto Aq matz@netlab.jp .
|
.An Yukihiro Matsumoto Aq matz@netlab.jp .
|
||||||
|
|
||||||
|
See <\fBhttp://redmine.ruby-lang.org/wiki/ruby/Contributors\fR> for contributors to Ruby.
|
Loading…
x
Reference in New Issue
Block a user