-
Notifications
You must be signed in to change notification settings - Fork 35
/
build-release.sh
executable file
·48 lines (36 loc) · 989 Bytes
/
build-release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
build() {
$USFMTOOLS/usfm-tools transform --target=$TARGET --usfmDir=$OEBDIR --builtDir=$BUILTDIR --config=$CONFIG --name=$ID
}
build-all(){
rm -rf "$BUILTDIR"
mkdir -p "$BUILTDIR"
OEBDIR=$BUILTDIR/usfm
mkdir -p $OEBDIR
$USFMTOOLS/usfm-tools variant -s $SOURCEDIR -d $OEBDIR -t $TAGS -b $BOOKLIST $SWAP
$USFMTOOLS/usfm-tools check -s $OEBDIR
TARGET=md ; build
TARGET=singlehtml ; build
TARGET=rtf ; build
TARGET=html ; build
TARGET=epub ; build
TARGET=context ; build
TARGET=accordance ; build
TARGET=mobi ; build
}
PYTHON=python3
SOURCEDIR=$PWD/source
CONFIG=$PWD/support/oeb.config
USFMTOOLS=USFM-Tools
ID=OEB-2022.1-US
BUILTDIR=$PWD/artifacts/us-release
TAGS=us-nrsv-neut-gehenna-ioudaioi
BOOKLIST=$PWD/books-in-release
SWAP=
build-all
ID=OEB-2022.1-Cth
BUILTDIR=$PWD/artifacts/cth-release
TAGS=cth-nrsv-neut-gehenna-ioudaioi
BOOKLIST=$PWD/books-in-release
SWAP=--punctuation
build-all