Browse Source

Add essential files, and setup-bibles.sh

master
Josias 3 months ago
parent
commit
a9fa86063a
3 changed files with 65 additions and 0 deletions
  1. +1
    -0
      .gitignore
  2. +41
    -0
      README.md
  3. +23
    -0
      setup-bibles.sh

+ 1
- 0
.gitignore View File

@@ -0,0 +1 @@
bibles/

+ 41
- 0
README.md View File

@@ -0,0 +1,41 @@
# Heb12 API

This is the central repository for the Heb12 API. It provides easy setup for the API and all related software.

This has a set of scripts that work together to configure the API for production use.

## Installation

Prerequisites:
- Unix-like system
- git
- Go >= 1.11

First clone the repository:
```
$ git clone https://code.heb12.com/heb12/api --recursive
```

Now set up the Bibles. This will download the Bibles if they aren't already downloaded, and make archives for each of them.
```
$ ./setup-bibles.sh
```

## License

Copyright (C) 2020 Josias Allestad <justjosias@tutanota.com>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.

See COPYING.LESSER for more license information.

+ 23
- 0
setup-bibles.sh View File

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

# downloads the bibles and uses the split branch, and makes archived versions
FILE=bibles
if test -d "$FILE"; then
echo "$FILE exist, moving on"
else
git clone https://github.com/gratis-bible/bible bibles
cd bibles
git checkout split
fi

cd bibles

for lang in */; do
[ -e "$lang" ] || continue
cd $lang
for version in */; do
version=${version%/}
tar -cvf $version.tar $version*
done
cd ..
done

Loading…
Cancel
Save