Add hyphenation patterns for 7 new locales.

The locales are Armenian, Basque, Ethiopic script, Hungarian,
Norwegian Bokmål, Norwegian Nynorsk, and Sanskrit.

The building scripts have also been reorganized slightly, and the
licenses have been clarified.

Bug: 20088132
Change-Id: I79a2372ec1a9ece9a4c7c6e544e225fb54e29c24
diff --git a/patterns.mk b/patterns.mk
index 4c181e5..82ee76e 100644
--- a/patterns.mk
+++ b/patterns.mk
@@ -16,8 +16,13 @@
 # PRODUCT_COPY_FILES to install the pattern files, so that the NOTICE file can
 # get installed too.
 
+pattern_locales := \
+    en-us eu hu hy \
+    nb nn sa und-ethi
+
 PRODUCT_PACKAGES := \
-    hyph-en-us.chr.txt \
-    hyph-en-us.hyp.txt \
-    hyph-en-us.lic.txt \
-    hyph-en-us.pat.txt
+    $(foreach locale, $(pattern_locales), \
+        $(addprefix hyph-, $(addprefix $(locale), \
+            .chr.txt .hyp.txt .lic.txt .pat.txt)))
+
+pattern_locales :=