aboutsummaryrefslogtreecommitdiff
path: root/update-sqlite3
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2019-03-15 22:29:55 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2019-03-15 22:29:55 +0100
commit7e2ff6435cd1a5a504eab34823a4f63c7a46df1f (patch)
tree042c0c23ecf01cf7e25713fbd070bea0f8c63d5b /update-sqlite3
parent92f8b625b5bdde6f87a99c4415ee218496fec343 (diff)
downloadopenrussian-cli-7e2ff6435cd1a5a504eab34823a4f63c7a46df1f.tar.gz
added Makefile and simple Bash completions
* this allows precompiling openrussian.lua, automatically downloads, converts and VACUUMs the openrussian database and provides an `install` target * Bash completions allow completing "bare" Russian words for the time being. Unfortunately we cannot complete with accents, since Bash completions do not allow to change the already typed word (apparently) and users aren't going to type in accents.
Diffstat (limited to 'update-sqlite3')
-rwxr-xr-xupdate-sqlite315
1 files changed, 0 insertions, 15 deletions
diff --git a/update-sqlite3 b/update-sqlite3
deleted file mode 100755
index da86baf..0000000
--- a/update-sqlite3
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-# Downloads latest OpenRussian MySQL database dump and convert
-# it to Sqlite3.
-#
-# NOTE: unzip cannot read from stdin yet. bsdtar could in principle,
-# but does not allow extracting to stdout.
-
-TMPFILE=`mktemp`
-
-wget -O $TMPFILE https://en.openrussian.org/downloads/openrussian-sql.zip
-unzip -p $TMPFILE openrussian.sql | \
-~/working-copies/mysql2sqlite/mysql2sqlite - | \
-sqlite3 openrussian-sqlite3.db
-
-rm $TMPFILE