mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
vpath.rb: hack for msys make
* tool/vpath.rb (VPath#def_options): hack for msys make, which converts a command line argument to non-msys command seems like a path list automagically. [Bug #7710] [ruby-core:51489] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8d83736f0c
commit
c669931941
5 changed files with 12 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
Sun Jan 20 22:24:28 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* tool/vpath.rb (VPath#def_options): hack for msys make, which
|
||||
converts a command line argument to non-msys command seems like a
|
||||
path list automagically. [Bug #7710] [ruby-core:51489]
|
||||
|
||||
Sat Jan 19 11:35:00 2013 Zachary Scott <zachary@zacharyscott.net>
|
||||
|
||||
* struct.c (Struct.new): Document Struct.new with block
|
||||
|
|
|
@ -575,7 +575,7 @@ PHONY:
|
|||
|
||||
{$(srcdir)}.y.c:
|
||||
$(ECHO) generating $@
|
||||
$(Q)$(BASERUBY) $(srcdir)/tool/id2token.rb --path-separator=$(PATH_SEPARATOR) --vpath=$(VPATH) id.h $(SRC_FILE) > parse.tmp.y
|
||||
$(Q)$(BASERUBY) $(srcdir)/tool/id2token.rb --path-separator=.$(PATH_SEPARATOR)./ --vpath=$(VPATH) id.h $(SRC_FILE) > parse.tmp.y
|
||||
$(Q)$(YACC) -d $(YFLAGS) -o y.tab.c parse.tmp.y
|
||||
$(Q)$(RM) parse.tmp.y
|
||||
$(Q)sed -f $(srcdir)/tool/ytab.sed -e "/^#/s!parse\.tmp\.[iy]!parse.y!" -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@.new
|
||||
|
|
|
@ -25,7 +25,7 @@ static: check
|
|||
|
||||
ripper.y: $(srcdir)/tools/preproc.rb $(top_srcdir)/parse.y
|
||||
$(ECHO) extracting $@ from $(top_srcdir)/parse.y
|
||||
$(Q) $(RUBY) $(top_srcdir)/tool/id2token.rb --vpath=$(VPATH) id.h $(top_srcdir)/parse.y > ripper.tmp.y
|
||||
$(Q) $(RUBY) $(top_srcdir)/tool/id2token.rb --path-separator=.$(PATH_SEPARATOR)./ --vpath=$(VPATH) id.h $(top_srcdir)/parse.y > ripper.tmp.y
|
||||
$(Q) $(RUBY) $(srcdir)/tools/preproc.rb ripper.tmp.y --output=$@
|
||||
$(Q) $(RM) ripper.tmp.y
|
||||
|
||||
|
|
|
@ -1759,6 +1759,7 @@ srcdir = #{srcdir.gsub(/\$\((srcdir)\)|\$\{(srcdir)\}/) {mkintpath(CONFIG[$1||$2
|
|||
topdir = #{mkintpath($extmk ? CONFIG["topdir"] : $topdir).unspace}
|
||||
hdrdir = #{mkintpath(CONFIG["hdrdir"]).unspace}
|
||||
arch_hdrdir = #{$arch_hdrdir.quote}
|
||||
PATH_SEPARATOR = #{CONFIG['PATH_SEPARATOR']}
|
||||
VPATH = #{vpath.join(CONFIG['PATH_SEPARATOR'])}
|
||||
}
|
||||
if $extmk
|
||||
|
|
|
@ -59,8 +59,9 @@ class VPath
|
|||
opt.on("-L", "--vpath=PATH LIST", "add directories to search path") {|dirs|
|
||||
@additional << [dirs]
|
||||
}
|
||||
opt.on("--path-separator=SEP", /\A\W\z/, "separator for vpath") {|sep|
|
||||
@separator = sep
|
||||
opt.on("--path-separator=SEP", /\A(?:\W\z|\.(\W).+)/, "separator for vpath") {|sep, vsep|
|
||||
# hack for msys make.
|
||||
@separator = vsep || sep
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue