1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

make-snapshot: fix VPATH regexp [ci skip]

* tool/make-snapshot (package): replace nmake style VPATH in
  common.mk by regexp same as one for uncommon.mk, not to replace
  too much, BEGIN and END in awk and ruby.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-07-14 06:46:53 +00:00
parent bf4020a34e
commit 5de227d638

View file

@ -311,7 +311,7 @@ def package(vcs, rev, destdir, tmp = nil)
}
args = vars.dup
mk.gsub!(/@([A-Za-z_]\w*)@/) {args.delete($1); vars[$1] || ENV[$1]}
mk << commonmk.gsub(/(?<!#)\{[^{}]*\}/, "")
mk << commonmk.gsub(/\{\$([^(){}]*)[^{}]*\}/, "")
mk << <<-'APPEND'
prereq: clean-cache $(CLEAN_CACHE)