From a8ec9ccd7f8b64cbe8f5740413f426dd298df7b3 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 4 Dec 2017 16:10:32 +0000 Subject: [PATCH] brew-aspell-dictionaries: move to homebrew/core. Experiment with moving this from Homebrew/brew to Homebrew/homebrew-core (to allow future additions of formula-specific `cmd`s). --- cmd/brew-aspell-dictionaries.rb | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100755 cmd/brew-aspell-dictionaries.rb diff --git a/cmd/brew-aspell-dictionaries.rb b/cmd/brew-aspell-dictionaries.rb new file mode 100755 index 00000000000..4c030a351f7 --- /dev/null +++ b/cmd/brew-aspell-dictionaries.rb @@ -0,0 +1,40 @@ +#: * `aspell_dictionaries`: +#: Generates the new dictionaries for the `aspell` formula. + +require "open-uri" +require "resource" +require "formula" + +dict_url = "https://ftpmirror.gnu.org/aspell/dict" +dict_mirror = "https://ftp.gnu.org/gnu/aspell/dict" +languages = {} + +open("#{dict_url}/0index.html") do |content| + content.each_line do |line| + break if %r{^