Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move lists to subdir

  • Loading branch information...
commit 06f9c52febe142005d02b2213df7833249d7b635 1 parent 7762c29
@ttencate authored
Showing with 9 additions and 6 deletions.
  1. +1 −1  .gitignore
  2. +2 −2 crosswordfinder.rb
  3. +6 −3 dump.sh
View
2  .gitignore
@@ -1 +1 @@
-*.list
+lists
View
4 crosswordfinder.rb
@@ -5,8 +5,8 @@ class Finder
include Singleton
def initialize
- lists_dir = File.dirname(__FILE__)
- language_files = Dir.glob(File.join(lists_dir, '*.list'))
+ lists_dir = File.join(File.dirname(__FILE__), 'lists')
+ language_files = Dir.glob(File.join(lists_dir, '*'))
@languages = {}
language_files.each do |language_file|
puts "Loading #{language_file}..."
View
9 dump.sh
@@ -1,12 +1,15 @@
#!/bin/sh
+LIST_DIR=lists
+mkdir -p $LIST_DIR
+
aspell -l nl dump master \
| iconv -f utf8 -t ascii//translit \
| tr '[A-Z]' '[a-z]' \
| egrep '^[a-z]+$' \
| sort \
| uniq \
- > Nederlands.list
+ > $LIST_DIR/Nederlands
aspell -l en_GB dump master \
| iconv -f utf8 -t ascii//translit \
@@ -14,7 +17,7 @@ aspell -l en_GB dump master \
| egrep '^[a-z]+$' \
| sort \
| uniq \
- > 'English (GB).list'
+ > $LIST_DIR/'English (GB)'
aspell -l en_US dump master \
| iconv -f utf8 -t ascii//translit \
@@ -22,4 +25,4 @@ aspell -l en_US dump master \
| egrep '^[a-z]+$' \
| sort \
| uniq \
- > 'English (US).list'
+ > $LIST_DIR/'English (US)'
Please sign in to comment.
Something went wrong with that request. Please try again.