Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed a bug in grep, make sure words starting with - are not valid.

  • Loading branch information...
commit 0dfad197401682397dae4eeaaff412f9eb7253e7 1 parent f96e7f1
Björgvin Ragnarsson authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  makedict.sh
2  makedict.sh
@@ -91,7 +91,7 @@ elif [ "$1" = "packages" ]; then
91 91 elif [ "$1" != "" ]; then
92 92 echo "Downloading files..."
93 93 test -e ${TMP}/${1}wiktionary-latest-pages-articles.xml || ( wget http://dumps.wikimedia.org/${1}wiktionary/latest/${1}wiktionary-latest-pages-articles.xml.bz2 -O ${TMP}/${1}wiktionary-latest-pages-articles.xml.bz2 && bunzip2 ${TMP}/${1}wiktionary-latest-pages-articles.xml.bz2 )
94   - test -e ${TMP}/${1}wiktionary-latest-pages-articles.xml.texts || grep -o "{{[^.]*|[^-.][^}]*" ${TMP}/iswiktionary-latest-pages-articles.xml | grep -v "{{.*|.*[ =]" | sort | uniq > ${TMP}/iswiktionary-latest-pages-articles.xml.texts
  94 + test -e ${TMP}/${1}wiktionary-latest-pages-articles.xml.texts || grep -o "{{[^.|]*|[^-.][^}]*" ${TMP}/iswiktionary-latest-pages-articles.xml | grep -v "{{.*|.*[ =]" | sort | uniq > ${TMP}/iswiktionary-latest-pages-articles.xml.texts
95 95
96 96 echo "Extracting valid words from the wiktionary dump..."
97 97 rm -f ${TMP}/wiktionary.extracted

0 comments on commit 0dfad19

Please sign in to comment.
Something went wrong with that request. Please try again.