зеркало из https://github.com/github/ruby.git
14 строки
352 B
Ruby
Executable File
14 строки
352 B
Ruby
Executable File
#!/usr/bin/ruby
|
|
require File.expand_path('../downloader', __FILE__)
|
|
ARGV.each {|n|
|
|
STDOUT.print "Downloading #{n}..."; STDOUT.flush
|
|
begin
|
|
url = "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=%s;hb=HEAD" % n
|
|
Downloader.download(url, n)
|
|
STDOUT.puts
|
|
rescue => e
|
|
STDOUT.puts
|
|
abort("#{$0}: #{e.message}")
|
|
end
|
|
}
|