diff options
| author | lonkaars <loek@pipeframe.xyz> | 2023-06-29 11:33:23 +0200 |
|---|---|---|
| committer | lonkaars <loek@pipeframe.xyz> | 2023-06-29 11:33:23 +0200 |
| commit | c998e1c0477d51c886f9e4246e102dec4d7ef8dd (patch) | |
| tree | 4d979c57f16b138ff4b2ce5fb3151ce241af6881 /import/jmdict/makefile | |
| parent | 67dbb6421976254658c5e38045513129dd18187a (diff) | |
add jmdict importer to repo
Diffstat (limited to 'import/jmdict/makefile')
| -rw-r--r-- | import/jmdict/makefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/import/jmdict/makefile b/import/jmdict/makefile new file mode 100644 index 0000000..d19c9af --- /dev/null +++ b/import/jmdict/makefile @@ -0,0 +1,13 @@ +CURL = curl +UNZIP = unzip + +all: jmdict.dict.sql + +jmdict.zip: + $(CURL) -Ls 'https://github.com/scriptin/jmdict-simplified/releases/download/3.5.0%2B20230619121907/jmdict-all-3.5.0+20230619121907.json.zip' > $@ + +jmdict.json: jmdict.zip + $(UNZIP) -p $< > $@ + +jmdict.dict.sql: jmdict.json jmdict.ts + deno run -A --unstable ./jmdict.ts < $< > $@ |