ruby-changes:50255
From: nobu <ko1@a...>
Date: Sun, 11 Feb 2018 23:01:59 +0900 (JST)
Subject: [ruby-changes:50255] nobu:r62373 (trunk): Makefile.in: use "%s"
nobu 2018-02-11 23:01:52 +0900 (Sun, 11 Feb 2018) New Revision: 62373 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62373 Log: Makefile.in: use "%s" * Makefile.in (mjit_config.h): use "%s" not to interprete % in arguments. and `set` and `loop` are not needed. Modified files: trunk/Makefile.in Index: Makefile.in =================================================================== --- Makefile.in (revision 62372) +++ Makefile.in (revision 62373) @@ -542,28 +542,28 @@ mjit_config.h: https://github.com/ruby/ruby/blob/trunk/Makefile.in#L542 echo '#ifndef RUBY_MJIT_CONFIG_H'; \ echo '#define RUBY_MJIT_CONFIG_H 1'; \ \ - set x $(CC) && shift && printf '#define MJIT_CC_COMMON ' && \ - for w do printf '"'$$w'", '; done; \ + printf '#define MJIT_CC_COMMON ' && \ + printf ' "%s",' $(CC) && \ echo; \ \ - set x -w $(ARCH_FLAG) && shift && printf '#define MJIT_CFLAGS ' && \ - for w do printf '"'$$w'", '; done; \ + printf '#define MJIT_CFLAGS ' && \ + printf ' "%s",' -w $(ARCH_FLAG) && \ echo; \ \ - set x $(optflags) && shift && printf '#define MJIT_OPTFLAGS ' && \ - for w do printf '"'$$w'", '; done; \ + printf '#define MJIT_OPTFLAGS ' && \ + printf ' "%s",' $(optflags) && \ echo; \ \ - set x $(debugflags) && shift && printf '#define MJIT_DEBUGFLAGS ' && \ - for w do printf '"'$$w'", '; done; \ + printf '#define MJIT_DEBUGFLAGS ' && \ + printf ' "%s",' $(debugflags) && \ echo; \ \ - set x @LDSHARED@ && shift && printf '#define MJIT_LDSHARED ' && \ - for w do printf '"'$$w'", '; done; \ + printf '#define MJIT_LDSHARED ' && \ + printf ' "%s",' @LDSHARED@ && \ echo; \ \ - set x @DLDFLAGS@ && shift && printf '#define MJIT_DLDFLAGS ' && \ - for w do printf '"'$$w'", '; done; \ + printf '#define MJIT_DLDFLAGS ' && \ + printf ' "%s",' @DLDFLAGS@ && \ echo; \ \ echo '#endif /* RUBY_MJIT_CONFIG_H */'; \ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/