aboutsummaryrefslogtreecommitdiffstats
path: root/tool/make-snapshot
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-15 01:28:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-15 01:28:58 +0000
commit238d8586dfefcf841045edaadac398d6be0f2a93 (patch)
treeba66bda96c1a9f92621f8cdb49c921a490a1e4fc /tool/make-snapshot
parentfff1128281f49583d4b227cec7d32bfce735a1fb (diff)
downloadruby-238d8586dfefcf841045edaadac398d6be0f2a93.tar.gz
make-snapshot: use srcdir
* tool/make-snapshot: use srcdir as checked out working directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-xtool/make-snapshot4
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 835d465e72..fa70d400cb 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -8,6 +8,7 @@ require 'tmpdir'
require File.expand_path("../vcs", __FILE__)
STDOUT.sync = true
+$srcdir ||= nil
$exported = nil if ($exported ||= nil) == ""
$archname = nil if ($archname ||= nil) == ""
$keep_temp ||= nil
@@ -20,6 +21,7 @@ def usage
<<USAGE
usage: #{File.basename $0} [option...] new-directory-to-save [version ...]
options:
+ -srcdir=PATH source directory path
-exported=PATH make snapshot from already exported working directory
-archname=NAME make the basename of snapshots NAME
-keep_temp keep temporary working directory
@@ -341,7 +343,7 @@ ensure
FileUtils.rm_rf(v) if v and !$exported and !$keep_temp
end
-vcs = VCS::SVN.new(SVNURL)
+vcs = (VCS.detect($srcdir) rescue nil if $srcdir) || VCS::SVN.new(SVNURL)
success = true
revisions.collect {|rev| package(vcs, rev, destdir, tmp)}.flatten.each do |name|