diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/openssl/extconf.rb | 10 |
2 files changed, 11 insertions, 3 deletions
@@ -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 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 |