diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-22 13:19:08 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-22 13:19:08 +0000 |
commit | c09e5abeee5e08e6c261e3618afa60020371eb96 (patch) | |
tree | 0871288276c8d388f2c269df6d560220edf77d2d /instruby.rb | |
parent | a550f2992bfbde8649e975eb345a4b478adbdd05 (diff) | |
download | ruby-c09e5abeee5e08e6c261e3618afa60020371eb96.tar.gz |
* Doxyfile.in: new file. Template of a configuration file for
Doxygen.
Intorduces C-level API reference generation with Doxygen.
* tool/file2lastrev.rb: wrapper script that abstracts subversion
and git-svn.
* tool/strip-rdoc.rb: filter for preventing doxygen from processing
rdoc comments.
* configure.in: (Doxyfile): Doxyfile is generated together with
Makefile.
(PACKAGE): configuration $(PACKAGE) is necessary for $(docdir).
* instruby.rb: adds a new install target 'capi'
* common.mk (capi): new target that generates C API documents with
Doxygen.
(install-capi): new target.
(pre-install-capi): ditto.
(do-install-capi): ditto.
(post-install-capi): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'instruby.rb')
-rwxr-xr-x | instruby.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/instruby.rb b/instruby.rb index 3c83dc3dc1..38ed40c52b 100755 --- a/instruby.rb +++ b/instruby.rb @@ -45,7 +45,7 @@ def parse_args(argv = ARGV) $mflags.concat(v) end opt.on('-i', '--install=TYPE', - [:local, :bin, :"bin-arch", :"bin-comm", :lib, :man, :ext, :"ext-arch", :"ext-comm", :rdoc]) do |ins| + [:local, :bin, :"bin-arch", :"bin-comm", :lib, :man, :ext, :"ext-arch", :"ext-comm", :rdoc, :capi]) do |ins| $install << ins end opt.on('--data-mode=OCTAL-MODE', OptionParser::OctalInteger) do |mode| @@ -221,6 +221,7 @@ sitearchlibdir = CONFIG["sitearchdir"] vendorlibdir = CONFIG["vendorlibdir"] vendorarchlibdir = CONFIG["vendorarchdir"] mandir = File.join(CONFIG["mandir"], "man") +capidir = CONFIG["docdir"] configure_args = Shellwords.shellwords(CONFIG["configure_args"]) enable_shared = CONFIG["ENABLE_SHARED"] == 'yes' dll = CONFIG["LIBRUBY_SO"] @@ -278,7 +279,7 @@ if $extout end end -install?(:rdoc) do +install?(:doc, :rdoc) do if $rdocdir puts "installing rdoc" @@ -288,6 +289,13 @@ install?(:rdoc) do install_recursive($rdocdir, ridatadir, :mode => $data_mode) end end +install?(:doc, :capi) do + puts "installing capi-docs" + + makedirs [capidir] + Dir.chdir("doc") + install_recursive "capi", capidir, :mode => $data_mode +end install?(:local, :comm, :bin, :'bin-comm') do puts "installing command scripts" |