summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-01 08:13:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-01 08:13:29 +0000
commit2c2e81ff98313387480f2d9f29949dc65fcf87b5 (patch)
tree4653f3ce7de5770a693820a9801b758672792578
parentf95261c6b327906b00df8364486ea52f7f140fd1 (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
-rw-r--r--ChangeLog4
-rw-r--r--ext/openssl/extconf.rb10
2 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index c818a31..3a25db8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Aug 1 17:13:23 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/openssl/extconf.rb: should replace literally.
+
Fri Aug 1 16:22:57 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (rb_io_check_readable, rb_io_check_writable): ensure not
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb
index 7d371c8..ea8c54c 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