]> gitweb.fperrin.net Git - DictionaryPC.git/commitdiff
Download changes.
authorThad Hughes <thad.hughes@gmail.com>
Wed, 28 Dec 2011 05:04:12 +0000 (21:04 -0800)
committerThad Hughes <thad.hughes@gmail.com>
Wed, 28 Dec 2011 05:04:12 +0000 (21:04 -0800)
data/downloadInputs.sh [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 9a3492f..89e584a
@@ -1,8 +1,14 @@
 #!/bin/bash -e
 
+OLD_DIR=`pwd`
+DIR=`dirname $0`
+
+cd $DIR
+
 echo "Downloading from: http://dumps.wikimedia.org/enwiktionary/"
 WIKI=enwiktionary-20111224-pages-articles.xml
 curl --remote-name http://dumps.wikimedia.org/enwiktionary/20111224/${WIKI}.bz2
+echo "Unzipping... this is slow."
 bunzip2 ${WIKI}.bz2
 mv ${WIKI} inputs/
 
@@ -13,3 +19,5 @@ gunzip ${CHEMNITZ}.gz
 mv ${CHEMNITZ} inputs/
 
 echo "Done.  Now run WiktionarySplitter to spit apart enwiktionary."
+
+cd $OLD_DIR