Include the proper variant spelling into the proper language (Closes:
authordon <don@8f7917da-ec0b-0410-a553-b9b0e350d17e>
Fri, 17 Feb 2012 20:08:56 +0000 (20:08 +0000)
committerdon <don@8f7917da-ec0b-0410-a553-b9b0e350d17e>
Fri, 17 Feb 2012 20:08:56 +0000 (20:08 +0000)
#659841). Thanks to Drew Parsons.

git-svn-id: svn+ssh://svn.donarmstrong.com/sites/don_svn/deb_pkgs/scowl/trunk@664 8f7917da-ec0b-0410-a553-b9b0e350d17e

debian/changelog
debian/rules

index 0d6af1b..8cdc75e 100644 (file)
@@ -1,3 +1,10 @@
+scowl (7.1-2) UNRELEASED; urgency=low
+
+  * Include the proper variant spelling into the proper language (Closes:
+    #659841). Thanks to Drew Parsons.
+
+ -- Don Armstrong <don@debian.org>  Wed, 12 Oct 2011 15:04:24 -0700
+
 scowl (7.1-1) unstable; urgency=low
 
   * New upstream release
index a66c8e7..50e46ca 100755 (executable)
@@ -55,17 +55,34 @@ build-stamp:
                  echo "  english-$$CLASS.$$EXT" >> w$$SPELLING$$SIZE.scowl-word-lists-used;\
                fi;\
                for VARIANT in $(VARIANTS); do\
-                 if [ -f final/variant_$$VARIANT-$$CLASS.$$EXT ]; then\
-                   echo "cat final/variant_$$VARIANT-$$CLASS.$$EXT >> $$SPELLING-english$$SIZE.unsorted";\
-                   cat final/variant_$$VARIANT-$$CLASS.$$EXT >> $$SPELLING-english$$SIZE.unsorted;\
-                   echo "  variant_$$VARIANT-$$CLASS.$$EXT" >> w$$SPELLING$$SIZE.scowl-word-lists-used;\
+                 VARIANT_FILE="$${SPELLING}_"; \
+                 if [ "$$VARIANT_FILE" = "american_" ]; then \
+                       VARIANT_FILE=""; \
+                 fi; \
+                 if [ -f final/$${VARIANT_FILE}variant_$$VARIANT-$$CLASS.$$EXT ]; then\
+                   echo "cat final/$${VARIANT_FILE}variant_$$VARIANT-$$CLASS.$$EXT >> $$SPELLING-english$$SIZE.unsorted";\
+                   cat final/$${VARIANT_FILE}variant_$$VARIANT-$$CLASS.$$EXT >> $$SPELLING-english$$SIZE.unsorted;\
+                   echo "  $${VARIANT_FILE}variant_$$VARIANT-$$CLASS.$$EXT" >> w$$SPELLING$$SIZE.scowl-word-lists-used;\
                  fi;\
                done;\
                if [ "$$SIZE" = "insane" ]; then\
-                 for special in special_hacker.50; do \
-                   echo "cat final/$$special >> $$SPELLING-english$$SIZE.unsorted";\
-                   cat final/final/$$special >> $$SPELLING-english$$SIZE.unsorted;\
-                   echo "  final/$$special" >> w$$SPELLING$$SIZE.scowl-word-lists-used;\
+                 for VARIANT in $(VARIANTS); do\
+                   for VARIANT_FILE in $(SPELLINGS); do \
+                     VARIANT_FILE="$${VARIANT_FILE}_"; \
+                     if [ "$$VARIANT_FILE" = "american_" ]; then \
+                       VARIANT_FILE=""; \
+                     fi; \
+                     if [ -f final/$${VARIANT_FILE}variant_$$VARIANT-$$CLASS.$$EXT ]; then\
+                       echo "cat final/$${VARIANT_FILE}variant_$$VARIANT-$$CLASS.$$EXT >> $$SPELLING-english$$SIZE.unsorted";\
+                       cat final/$${VARIANT_FILE}variant_$$VARIANT-$$CLASS.$$EXT >> $$SPELLING-english$$SIZE.unsorted;\
+                       echo "  $${VARIANT_FILE}variant_$$VARIANT-$$CLASS.$$EXT" >> w$$SPELLING$$SIZE.scowl-word-lists-used;\
+                     fi;\
+                   done; \
+                  done; \
+                 for special in final/special_*.$$CLASS; do \
+                   echo "cat $$special >> $$SPELLING-english$$SIZE.unsorted";\
+                   cat $$special >> $$SPELLING-english$$SIZE.unsorted;\
+                   echo "  $$special" >> w$$SPELLING$$SIZE.scowl-word-lists-used;\
                  done;\
                fi;\
                if [ -f final/$$SPELLING-$$CLASS.$$EXT ]; then\