summaryrefslogtreecommitdiff
path: root/taler-build/update_docs.sh
blob: 46a1d029aab7d4396e44c2c8be6b753f0d78e8e2 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/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 doc/*.css $HOME/build/exchange/manual/html/
cp doc/*.png $HOME/build/exchange/manual/html/
cp doc/*.js $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/

# 6 bank
cd $HOME/bank
fetch
./bootstrap
./configure --enable-only-doc
make pdf
make html
mkdir -p $HOME/build/bank/manual/pdf
mkdir -p $HOME/build/bank/manual/html
cp doc/taler-bank.pdf $HOME/build/bank/manual/pdf/
cp doc/taler-bank.html $HOME/build/bank/manual/html/
cp doc/*.css $HOME/build/exchange/manual/html/
cp doc/*.png $HOME/build/exchange/manual/html/
cp doc/*.js $HOME/build/exchange/manual/html/