Skip to content

Commit

Permalink
Add a script to build the dictionary data
Browse files Browse the repository at this point in the history
  • Loading branch information
bpeel committed Apr 8, 2024
1 parent 35c213a commit ad3a073
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ local.properties
.idea
.DS_Store
.externalNativeBuild
/prevodb-build

/app/src/main/assets/articles/article-*.bin
/app/src/main/assets/indices/index-*.bin
Expand Down
16 changes: 16 additions & 0 deletions scripts/generate-dictionary.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

set -eu

cd "$(dirname "$0")"/..

mkdir -p prevodb-build
cd prevodb-build

../extern/prevodb/autogen.sh
make -j$(nproc)

./src/prevodb \
-i ../extern/revo-fonto \
-i ../extern/voko-grundo \
-o ../app/src/main

0 comments on commit ad3a073

Please sign in to comment.