From 5be03060eab6faa37dd9345d38befaff60919d2b Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 20 Sep 2014 14:33:59 +0100 Subject: brew-aspell-dictionaries: make a developer command --- Library/Homebrew/cmd/aspell-dictionaries.rb | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 Library/Homebrew/cmd/aspell-dictionaries.rb (limited to 'Library/Homebrew') diff --git a/Library/Homebrew/cmd/aspell-dictionaries.rb b/Library/Homebrew/cmd/aspell-dictionaries.rb new file mode 100755 index 000000000..82f25fec7 --- /dev/null +++ b/Library/Homebrew/cmd/aspell-dictionaries.rb @@ -0,0 +1,40 @@ +require 'open-uri' +require 'resource' +require 'formula' + +module Homebrew + def aspell_dictionaries + dict_url = "http://ftpmirror.gnu.org/aspell/dict" + dict_mirror = "http://ftp.gnu.org/gnu/aspell/dict" + languages = {} + + open("#{dict_url}/0index.html") do |content| + content.each_line do |line| + break if %r{^