diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-28 14:31:01 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-28 14:31:01 +0000 |
commit | c7ea47eef137f9d7aa4e6b98744ac220d09d3e37 (patch) | |
tree | 923fb47304ff39c93f8f343b54d980cf73e89f40 /ext | |
parent | 0d95887b867eb8f32a1b255ee571bf80ea89a9e8 (diff) |
unused
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/configsub.rb | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/ext/configsub.rb b/ext/configsub.rb deleted file mode 100644 index 15d9a2e3d3..0000000000 --- a/ext/configsub.rb +++ /dev/null @@ -1,32 +0,0 @@ -#!./miniruby -ps - -BEGIN { - CONFIG = {} - - RUBY_VERSION.scan(/(\d+)\.(\d+)\.(\d+)/) do - # overridden if config.status has version - CONFIG['MAJOR'] = $1 - CONFIG['MINOR'] = $2 - CONFIG['TEENY'] = $3 - end - - File.foreach($config || "config.status") do |line| - next if /^#/ =~ line - if /^s[%,]@(\w+)@[%,](.*)[%,][g;]/ =~ line - name = $1 - val = $2 || "" - next if /^(INSTALL|DEFS|configure_input|srcdir)$/ =~ name - val.gsub!(/\$\{([^{}]+)\}/) { "$(#{$1})" } - CONFIG[name] = val - end - end - - CONFIG['top_srcdir'] = File.expand_path($srcdir || ".") - CONFIG['RUBY_INSTALL_NAME'] = $install_name if $install_name - CONFIG['RUBY_SO_NAME'] = $so_name if $so_name - $stdout = open($output, 'w') if $output -} - -gsub!(/@(\w+)@/) {CONFIG[$1] || $&} - -# vi:set sw=2: |