summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorsuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-09 02:15:03 +0000
committersuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-09 02:15:03 +0000
commit2eb3f3cc4404d839853adff124a78732250031f1 (patch)
treeb25daf123eb3aad80cc32bd7a04cfe9a44aa4775 /ext
parent5480e9e4d7c0622aeaaeb4c51ed3e4c44b80b7b5 (diff)
create .document file for rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/win32ole/extconf.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/win32ole/extconf.rb b/ext/win32ole/extconf.rb
index c989267733..cee922554a 100644
--- a/ext/win32ole/extconf.rb
+++ b/ext/win32ole/extconf.rb
@@ -6,6 +6,17 @@
require 'mkmf'
dir_config("win32")
+
+SRCFILES=<<SRC
+win32ole.c
+SRC
+
+def create_docfile(src)
+ open(File.expand_path($srcdir) + "/.document", "w") {|ofs|
+ ofs.print src
+ }
+end
+
def create_win32ole_makefile
if have_library("ole32") and
have_library("oleaut32") and
@@ -15,6 +26,9 @@ def create_win32ole_makefile
have_library("advapi32") and
have_header("windows.h")
create_makefile("win32ole")
+ create_docfile(SRCFILES)
+ else
+ create_docfile("")
end
end