summaryrefslogtreecommitdiff
path: root/taler-build/update_docs.sh
blob: df94632b4dd8a29c3c56e5fa0bf00ca876c8f3e1 (plain)
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
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash

set -eu

fetch () {
  git clean -fdx
  git fetch
  # reset to updated upstream branch, but only if we're tracking a branch
  branch=$(git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null || echo HEAD)
  git reset --hard "$branch"
}

# 1 merchant
cd $HOME/merchant
fetch
./bootstrap
./configure --enable-only-doc
make
doxygen
cp doc/manual.pdf $HOME/build/merchant-backend/manual/pdf/
cp doc/manual.html $HOME/build/merchant-backend/manual/html/
cp -r doxygen-doc/html/* $HOME/build/merchant-backend/doxygen/

# 2 exchange
cd $HOME/exchange
fetch
./bootstrap
./configure --enable-only-doc
make pdf
make html
doxygen
cp doc/taler-exchange.pdf $HOME/build/exchange/manual/pdf/
cp doc/taler-exchange.html/* $HOME/build/exchange/manual/html/
cp -r doxygen-doc/html/* $HOME/build/exchange/doxygen/

# 3 frontends tutorials
cd $HOME/merchant-frontend-examples
fetch
make
cp php/doc/tutorial.pdf $HOME/build/merchant-frontend/php/pdf/
cp php/doc/tutorial.html $HOME/build/merchant-frontend/php/html/
cp python/doc/tutorial.pdf $HOME/build/merchant-frontend/python/pdf/
cp python/doc/tutorial.html $HOME/build/merchant-frontend/python/html/

# 4 api
cd $HOME/api
fetch
make html
cp -r _build/html/* $HOME/build/api/html/


# 5 onboarding
cd $HOME/deployment
fetch
cd doc/
texi2pdf onboarding.texi
texi2html onboarding.texi
cp onboarding.html $HOME/build/onboarding/html/
cp onboarding.pdf $HOME/build/onboarding/pdf/