ruby-changes:68058
From: Nobuyoshi <ko1@a...>
Date: Tue, 21 Sep 2021 17:35:07 +0900 (JST)
Subject: [ruby-changes:68058] 98c5907c65 (master): Ripper source on mswin
https://git.ruby-lang.org/ruby.git/commit/?id=98c5907c65 From 98c5907c653d19477e19b973cc67b97607c4ba4b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 20 Sep 2021 22:17:46 +0900 Subject: Ripper source on mswin * Get rid of command substitution for cmd.exe. * Separate RM1 command to remove single file sans directory. --- common.mk | 4 ++-- template/Makefile.in | 1 + win32/Makefile.sub | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/common.mk b/common.mk index c017900..49d3814 100644 --- a/common.mk +++ b/common.mk @@ -1189,10 +1189,10 @@ $(REVISION_H): revision.tmp https://github.com/ruby/ruby/blob/trunk/common.mk#L1189 $(srcdir)/ext/ripper/ripper.c: $(srcdir)/ext/ripper/tools/preproc.rb $(srcdir)/parse.y id.h $(srcdir)/ext/ripper/depend $(ECHO) generating $@ - $(Q) VPATH=$${PWD-`pwd`} && $(CHDIR) $(@D) && \ + $(Q) $(CHDIR) $(@D) && \ sed -e 's/{\$$([^(){}]*)[^{}]*}//g' -e /AUTOGENERATED/q depend | \ $(exec) $(MAKE) -f - $(mflags) \ - Q=$(Q) ECHO=$(ECHO) RM="$(RM)" BISON=$(YACC) top_srcdir=../.. srcdir=. VPATH="$${VPATH}" \ + Q=$(Q) ECHO=$(ECHO) RM="$(RM1)" BISON=$(YACC) top_srcdir=../.. srcdir=. VPATH=../.. \ RUBY="$(BASERUBY)" PATH_SEPARATOR="$(PATH_SEPARATOR)" LANG=C $(srcdir)/ext/json/parser/parser.c: $(srcdir)/ext/json/parser/parser.rl $(srcdir)/ext/json/parser/prereq.mk diff --git a/template/Makefile.in b/template/Makefile.in index 666cbc3..b0e987b 100644 --- a/template/Makefile.in +++ b/template/Makefile.in @@ -208,6 +208,7 @@ MAKEDIRS = @MKDIR_P@ https://github.com/ruby/ruby/blob/trunk/template/Makefile.in#L208 CP = cp MV = mv RM = rm -f +RM1 = $(RM) RMDIR = @RMDIR@ RMDIRS = @RMDIRS@ RMALL = @RMALL@ diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 760f919..a610577 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -89,6 +89,7 @@ RMALL = $(COMSPEC) /C $(srcdir:/=\)\win32\rm.bat -f -r https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L89 MAKEDIRS = $(COMSPEC) /E:ON /C $(srcdir:/=\)\win32\makedirs.bat CP = copy > nul MV = move > nul +RM1 = del /f /q !if !defined(BASERUBY) BASERUBY = ruby !endif -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/