2013-06-14 08:40:32 +04:00
|
|
|
#!/usr/bin/ruby
|
2014-06-23 13:49:42 +04:00
|
|
|
require File.expand_path('../downloader', __FILE__)
|
2013-06-14 09:10:12 +04:00
|
|
|
ARGV.each {|n|
|
|
|
|
STDOUT.print "Downloading #{n}..."; STDOUT.flush
|
2014-04-01 12:29:36 +04:00
|
|
|
begin
|
2014-06-24 05:26:21 +04:00
|
|
|
url = "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=%s;hb=HEAD" % n
|
|
|
|
Downloader.download(url, n)
|
2014-04-01 12:29:36 +04:00
|
|
|
STDOUT.puts
|
|
|
|
rescue => e
|
|
|
|
STDOUT.puts
|
|
|
|
abort("#{$0}: #{e.message}")
|
|
|
|
end
|
2013-06-14 09:10:12 +04:00
|
|
|
}
|