2011-12-14 22:01:35 +00:00
|
|
|
#! /usr/bin/ruby
|
|
|
|
|
|
|
|
=begin
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
Use SVN to get the latest revisions to the currently-selected distro.
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
=end
|
|
|
|
|
2013-10-21 15:21:54 -04:00
|
|
|
require File.expand_path('subscripts/common', File.dirname(__FILE__))
|
2011-12-14 22:01:35 +00:00
|
|
|
|
2013-10-21 15:21:54 -04:00
|
|
|
if (@is_git)
|
|
|
|
Dir.chdir(distro_file('Vitro')) { |path| system "git pull" }
|
|
|
|
Dir.chdir(distro_file('VIVO')) { |path| system "git pull" }
|
|
|
|
else
|
|
|
|
Dir.chdir(distro_file('vitro')) { |path| system "svn update" }
|
|
|
|
Dir.chdir(distro_file('vivo')) { |path| system "svn update" }
|
2011-12-14 22:01:35 +00:00
|
|
|
end
|