Browse Source

Add basic setup scripts

master
Josias 3 months ago
parent
commit
d944b4aede
3 changed files with 26 additions and 0 deletions
  1. +10
    -0
      setup-bibleget.sh
  2. +11
    -0
      setup-biblesearch.sh
  3. +5
    -0
      setup.sh

+ 10
- 0
setup-bibleget.sh View File

@@ -0,0 +1,10 @@
#!/bin/bash

cd bibleget
go build
cp example.config.toml config.toml

# update config to point to ../bibles as the bible dir
oldtext='Dir = ""'
newtext='Dir = "../bibles"'
sed -i -e "s#$oldtext#$newtext#g" config.toml

+ 11
- 0
setup-biblesearch.sh View File

@@ -0,0 +1,11 @@
#!/bin/bash

cd biblesearch
wget http://api.heb12.com/translations/en/web.json

oldtext='./jubl2000.json'
newtext='./web.json'
sed -i -e "s#$oldtext#$newtext#g" compile.js

mkdir data
node compile.js

+ 5
- 0
setup.sh View File

@@ -0,0 +1,5 @@
#!/bin/bash

bash ./setup-bibles.sh
bash ./setup-bibleget.sh
bash ./setup-biblesearch.sh

Loading…
Cancel
Save