Skip to content

Commit

Permalink
matz - add/remove files
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
matz committed Aug 3, 2000
1 parent 5222760 commit 87be0f1
Show file tree
Hide file tree
Showing 14 changed files with 622 additions and 968 deletions.
32 changes: 32 additions & 0 deletions ext/configsub.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!./miniruby -ps

BEGIN {
CONFIG = {}

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 |$_|
next if /^#/
if /^s%@(\w+)@%(.*)%g/
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
$defout = open($output, 'w') if $output
}

gsub!(/@(\w+)@/) {CONFIG[$1] || $&}

# vi:set sw=2:
41 changes: 0 additions & 41 deletions ext/mswin32_extmk.rb

This file was deleted.

266 changes: 0 additions & 266 deletions win32/Makefile

This file was deleted.

Loading

0 comments on commit 87be0f1

Please sign in to comment.