* common.mk (dist): tool/make-snapshot is executable.

* tool/make-snapshot (package): supported release numbers 1.9.0-x.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2008-08-25 17:47:57 +00:00
Родитель 75b2d7cbe8
Коммит 42307bf41f
3 изменённых файлов: 12 добавлений и 5 удалений

Просмотреть файл

@ -1,3 +1,9 @@
Tue Aug 26 02:47:08 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* common.mk (dist): tool/make-snapshot is executable.
* tool/make-snapshot (package): supported release numbers 1.9.0-x.
Tue Aug 26 02:43:50 2008 Tanaka Akira <akr@fsij.org>
* include/ruby/io.h (rb_io_t): new field: writeconv_pre_opts.

Просмотреть файл

@ -797,7 +797,7 @@ vtune: miniruby$(EXEEXT)
vtl view -ha -mn miniruby$(EXEEXT) -sum -sort -cd | $(RUNRUBY) $(srcdir)/tool/vtlh.rb > ha.lines
dist: $(PREP) $(PROGRAM)
$(SHELL) $(srcdir)/tool/make-snapshot . $(TARNAME)
$(srcdir)/tool/make-snapshot . $(TARNAME)
up:
@$(VCS) up "$(srcdir)"

Просмотреть файл

@ -53,9 +53,10 @@ def package(rev, destdir)
when /\Astable\z/
url = SVNURL + "branches/"
url = url + `svn ls #{url}`[/.*^(ruby_\d+_\d+)\//m, 1]
when /\A\(.*\..*\..*\)-/
patchlevel = true
url = SVNURL + "tags/v#{rev.sub(/-p?/, '_').tr('.', '_')}"
when /\A(.*)\.(.*)\.(.*)-(p)?(.*)/
patchlevel = !!$4
tag = "#{$4}#{$5}"
url = SVNURL + "tags/v#{$1}_#{$2}_#{$3}_#{$5}"
when /\./
url = SVNURL + "branches/ruby_#{rev.tr('.', '_')}"
else
@ -97,7 +98,7 @@ def package(rev, destdir)
patchlevel = versionhdr[/^\#define\s+RUBY_PATCHLEVEL\s+(\d+)/, 1]
tag = (patchlevel ? "p#{patchlevel}" : "r#{revision}")
else
tag = "r#{revision}"
tag ||= "r#{revision}"
end
v = "ruby-#{version}-#{tag}"
File.directory?(v) or File.rename "ruby", v