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 | a1a347f0b0691c69c2a1f7fbf27c9b4ab8311432 (patch) | |
| tree | 4653f3ce7de5770a693820a9801b758672792578 /ext | |
| parent | 6d0dafa47a55c7aff3fedf67cf11e82218a42b50 (diff) | |
| download | ruby-a1a347f0b0691c69c2a1f7fbf27c9b4ab8311432.tar.gz ruby-a1a347f0b0691c69c2a1f7fbf27c9b4ab8311432.tar.xz ruby-a1a347f0b0691c69c2a1f7fbf27c9b4ab8311432.zip | |
* ext/openssl/extconf.rb: should replace literally.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -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 7d371c8b1..ea8c54c0a 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 |
