diff options
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rwxr-xr-x | tool/mkconfig.rb | 7 | ||||
| -rw-r--r-- | version.h | 2 |
3 files changed, 13 insertions, 2 deletions
@@ -1,3 +1,9 @@ +Thu Mar 28 18:14:41 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * tool/mkconfig.rb: reconstruct comma separated list values. a + command line to Windows batch file is split not only by spaces + and equal signs but also by commas and semicolons. + Thu Mar 28 18:13:38 2013 NARUSE, Yui <naruse@ruby-lang.org> * string.c (str_byte_substr): don't set coderange if it's not known. diff --git a/tool/mkconfig.rb b/tool/mkconfig.rb index f6f335182e..6d8751175e 100755 --- a/tool/mkconfig.rb +++ b/tool/mkconfig.rb @@ -113,7 +113,12 @@ File.foreach "config.status" do |line| end end if name == "configure_args" - val.gsub!(/ +(?!-)/, "=") if win32 + if win32 + val.gsub!(/\G(--[-a-z0-9]+)((=\S+)|(?:\s+(?!-)\S+)+)?(\s*)/) { + _, opt, list, arg, sep = *$~ + "#{opt}#{arg || list && list.sub(/^\s+/, '=').tr_s(' ', ',')}#{sep}" + } + end val.gsub!(/--with-out-ext/, "--without-ext") elsif name == "libdir" v_runtime[:libdir] = val[/\$(\(exec_prefix\)|\{exec_prefix\})\/(.*)/, 2] @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.3" -#define RUBY_PATCHLEVEL 396 +#define RUBY_PATCHLEVEL 397 #define RUBY_RELEASE_DATE "2013-03-28" #define RUBY_RELEASE_YEAR 2013 |
