aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authorSorah Fukumori <her@sorah.jp>2023-11-13 07:57:04 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-11-13 11:28:48 +0900
commit952de171c01cb1e96245bc0263884dd8655fd644 (patch)
tree831fd9ef645230ab2e4fd02099223298e22e1222 /tool
parent5bb756287244923f2817a5989fe9dc78930b4380 (diff)
downloadruby-952de171c01cb1e96245bc0263884dd8655fd644.tar.gz
make-snapshot: update RUBY_PATCHLEVEL_STR regexp
the regexp to replace RUBY_PATCHLEVEL_STR for prerelease snapshots doesn't match since GH-8578. follow-up: https://github.com/ruby/ruby/pull/8578 follow-up: 68df43788dc237a1071f02b2d82768f844696315
Diffstat (limited to 'tool')
-rwxr-xr-xtool/make-snapshot2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 154ee89b4c..7446f18578 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -364,7 +364,7 @@ def package(vcs, rev, destdir, tmp = nil)
end
elsif prerelease
versionhdr ||= IO.read("#{v}/version.h")
- versionhdr.sub!(/^\#define\s+RUBY_PATCHLEVEL_STR\s+"\K.+?(?=")/, tag)
+ versionhdr.sub!(/^\#\s*define\s+RUBY_PATCHLEVEL_STR\s+"\K.+?(?=")/, tag) or raise "no match of RUBY_PATCHLEVEL_STR to replace"
IO.write("#{v}/version.h", versionhdr)
else
tag ||= vcs.revision_name(revision)