Sha256: 5fa8e89489a4e70abafc4119ee2bee69f1d73a988cd462c94d6586b5ac782b28

Contents?: true

Size: 400 Bytes

Versions: 78

Compression:

Stored size: 400 Bytes

Contents

#!/bin/sh

base_dir=$(dirname $0)

if [ 1 != $# -a 2 != $# ]; then
  echo "usage: $0 db_path [edict.gz_path]"
  exit 1
fi

if [ -z $2 ]; then
    edict_gz=edict.gz
    if [ ! -f $edict_gz ]; then
	wget -O $edict_gz http://ftp.monash.edu.au/pub/nihongo/edict.gz
    fi
else
    edict_gz=$2
fi

if zcat $edict_gz | ${base_dir}/edict2grn.rb | groonga $1 > /dev/null; then
  echo "edict data loaded."
fi

Version data entries

78 entries across 78 versions & 1 rubygems

Version Path
rroonga-6.0.5-x64-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-6.0.5-x86-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-6.0.4-x86-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-6.0.4-x64-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-6.0.2-x64-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-6.0.2-x86-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-6.0.0-x64-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-6.0.0-x86-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-5.1.1-x86-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-5.1.1-x64-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-5.0.9-x86-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-5.0.9-x64-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-5.0.8-x86-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-5.0.8-x64-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-5.0.5-x86-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-5.0.5-x64-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-5.0.4-x86-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-5.0.4-x64-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-5.0.3-x86-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-5.0.3-x64-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh