mirror of
https://github.com/ElnuDev/rust-jmdict.git
synced 2025-05-12 01:45:52 -07:00
Add fetch script
This commit is contained in:
parent
917747939b
commit
e8c071c2a9
3 changed files with 13 additions and 0 deletions
1
data/.gitignore
vendored
Normal file
1
data/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
JMdict.xml
|
10
data/fetch.sh
Executable file
10
data/fetch.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# https://www.edrdg.org/wiki/index.php/JMdict-EDICT_Dictionary_Project#CURRENT_VERSION_&_DOWNLOAD
|
||||
wget http://ftp.edrdg.org/pub/Nihongo/JMdict.gz
|
||||
|
||||
# Extract and delete archive
|
||||
gzip -d JMdict.gz
|
||||
|
||||
# Add XML extension
|
||||
mv JMdict JMdict.xml
|
|
@ -5,6 +5,8 @@ pkgs.mkShell {
|
|||
go
|
||||
gopls
|
||||
gnumake
|
||||
wget
|
||||
gzip
|
||||
];
|
||||
shellHook = ''
|
||||
export PATH="$HOME/go/bin:$PATH"
|
||||
|
|
Loading…
Add table
Reference in a new issue