aboutsummaryrefslogtreecommitdiffstats
path: root/tool/make-snapshot
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-07 02:54:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-07 02:54:28 +0000
commita3283742f7a524f792a0efcdd6f7635fbfe45325 (patch)
tree646d49a0a84002ecb46595d827c8f480786f1004 /tool/make-snapshot
parentcad6dbbc66cc71627a4c5da8a8bfad51de6076d5 (diff)
downloadruby-a3283742f7a524f792a0efcdd6f7635fbfe45325.tar.gz
vcs.rb: unnecessary arguments
* tool/make-snapshot: $srcdir is optional. * tool/vcs.rb (export_changelog): remove unnecessary arguments. VCS should know srcdir and url. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-xtool/make-snapshot3
1 files changed, 1 insertions, 2 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 7868846f77..f278286b70 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -205,7 +205,6 @@ def package(vcs, rev, destdir, tmp = nil)
end
end
- srcdir = File.realpath($srcdir)
Dir.chdir(tmp) if tmp
if !File.directory?(v)
@@ -221,7 +220,7 @@ def package(vcs, rev, destdir, tmp = nil)
unless /\Ar(\d+) / =~ f.readline
abort "Cannot find revision from '#{last_ChangeLog}'"
end
- vcs.export_changelog(srcdir, url, $1.to_i+1, revision.to_i, "#{v}/ChangeLog")
+ vcs.export_changelog($1.to_i+1, revision.to_i, "#{v}/ChangeLog")
end
open("#{v}/revision.h", "wb") {|f| f.puts "#define RUBY_REVISION #{revision}"}