Skip to content

Commit 87be0f1

Browse files
author
matz
committed
matz - add/remove files
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 5222760 commit 87be0f1

14 files changed

+622
-968
lines changed

ext/configsub.rb

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!./miniruby -ps
2+
3+
BEGIN {
4+
CONFIG = {}
5+
6+
VERSION.scan(/(\d+)\.(\d+)\.(\d+)/) do
7+
# overridden if config.status has version
8+
CONFIG['MAJOR'] = $1
9+
CONFIG['MINOR'] = $2
10+
CONFIG['TEENY'] = $3
11+
end
12+
13+
File.foreach($config || "config.status") do |$_|
14+
next if /^#/
15+
if /^s%@(\w+)@%(.*)%g/
16+
name = $1
17+
val = $2 || ""
18+
next if /^(INSTALL|DEFS|configure_input|srcdir)$/ =~ name
19+
val.gsub!(/\$\{([^{}]+)\}/) { "$(#{$1})" }
20+
CONFIG[name] = val
21+
end
22+
end
23+
24+
CONFIG['top_srcdir'] = File.expand_path($srcdir || ".")
25+
CONFIG['RUBY_INSTALL_NAME'] = $install_name if $install_name
26+
CONFIG['RUBY_SO_NAME'] = $so_name if $so_name
27+
$defout = open($output, 'w') if $output
28+
}
29+
30+
gsub!(/@(\w+)@/) {CONFIG[$1] || $&}
31+
32+
# vi:set sw=2:

ext/mswin32_extmk.rb

Lines changed: 0 additions & 41 deletions
This file was deleted.

win32/Makefile

Lines changed: 0 additions & 266 deletions
This file was deleted.

0 commit comments

Comments
 (0)