diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-01 08:13:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-01 08:13:29 +0000 |
commit | 2c2e81ff98313387480f2d9f29949dc65fcf87b5 (patch) | |
tree | 4653f3ce7de5770a693820a9801b758672792578 /ext/openssl/extconf.rb | |
parent | f95261c6b327906b00df8364486ea52f7f140fd1 (diff) |
* ext/openssl/extconf.rb: should replace literally.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/extconf.rb')
-rw-r--r-- | ext/openssl/extconf.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb index 7d371c8b1f..ea8c54c0a2 100644 --- a/ext/openssl/extconf.rb +++ b/ext/openssl/extconf.rb @@ -112,9 +112,13 @@ test-link: $(OBJS) dep: $(SRCS) $(CC) $(CFLAGS) $(CPPFLAGS) -c $^ -MM | \\ - sed -e 's|$(topdir)/|$$(topdir)/|g' \\ - -e 's|$(srcdir)/|$$(srcdir)/|g' \\ - -e 's|$(hdrdir)/|$$(hdrdir)/|g' \\ + $(RUBY) -p -e 'BEGIN{S = []' \\ + -e 'while !ARGV.empty? and /^(\\w+)=(.*)/ =~ ARGV[0]' \\ + -e 'S << [/\#{Regexp.quote($$2)}/, "$$(\#{$$1})"]' \\ + -e 'ARGV.shift' \\ + -e 'end' \\ + -e '}' -e 'S.each(&method(:gsub!))' -- \\ + 'topdir=$(topdir)' 'srcdir=$(srcdir)' 'hdrdir=$(hdrdir)' \\ > dep include dep |