[前][次][番号順一覧][スレッド一覧]

ruby-changes:61587

From: Nobuyoshi <ko1@a...>
Date: Sat, 6 Jun 2020 16:46:27 +0900 (JST)
Subject: [ruby-changes:61587] 0c00a4176b (master): Hash marks in Makefile need to be escaped [Bug #16935]

https://git.ruby-lang.org/ruby.git/commit/?id=0c00a4176b

From 0c00a4176ba353d59d8c991428574ef2c2676674 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 6 Jun 2020 16:44:14 +0900
Subject: Hash marks in Makefile need to be escaped [Bug #16935]


diff --git a/template/configure-ext.mk.tmpl b/template/configure-ext.mk.tmpl
index 438e109..489f6e2 100644
--- a/template/configure-ext.mk.tmpl
+++ b/template/configure-ext.mk.tmpl
@@ -22,7 +22,7 @@ exts = {} https://github.com/ruby/ruby/blob/trunk/template/configure-ext.mk.tmpl#L22
 end
 %>
 MINIRUBY = <%=miniruby%>
-SCRIPT_ARGS = <%=script_args%>
+SCRIPT_ARGS = <%=script_args.gsub("#", "\\#")%>
 EXTMK_ARGS = $(SCRIPT_ARGS) --gnumake=$(gnumake) --extflags="$(EXTLDFLAGS)" \
 	   --make-flags="MINIRUBY='$(MINIRUBY)'"
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]