Sha256: b079967bb72b384e768c3d02a1a45276c6c38915f51232571e046dfa7344ef27

Contents?: true

Size: 480 Bytes

Versions: 18

Compression:

Stored size: 480 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 type gzcat > /dev/null 2>&1; then
    zcat="gzcat"
else
    zcat="zcat"
fi

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rroonga-9.0.7-x64-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-9.0.7-x86-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-9.0.3-x64-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-9.0.3-x86-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-9.0.2-x64-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-9.0.2-x86-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-7.1.1-x64-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-7.1.1-x86-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-7.0.2-x86-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-7.0.2-x64-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-6.1.3-x64-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-6.1.3-x86-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-6.1.0-x86-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-6.1.0-x64-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-6.0.9-x64-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-6.0.9-x86-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-6.0.7-x86-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh
rroonga-6.0.7-x64-mingw32 vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh