Jisho-Study-Tool/lib/migrations/Makefile

19 lines
435 B
Makefile
Raw Normal View History

2022-05-07 18:35:50 +02:00
DB_NAME=test.db
all: clean dart
2022-05-07 18:35:50 +02:00
sqlite3 $(DB_NAME) < 0001_initial.sql
sqlite3 $(DB_NAME) < 0002_populate_radicals.sql
sqlite3 $(DB_NAME) < 0003_populate_radkfile.sql
sqlite3 $(DB_NAME) < 0004_populate_jouyou_kanji.sql
convert_kradk:
iconv -f EUC-JP -t UTF-8 -o data/radkfile_utf8 data/radkfile
dart:
dart run tools/update_0002.dart
dart run tools/update_0003.dart
dart run tools/update_0004.dart
2022-05-07 18:35:50 +02:00
clean:
rm test.db || true