summaryrefslogtreecommitdiff
path: root/taler-docbuild/update_doc_exchange.sh
blob: 7da72ea370024070f88f2c38aaaeef056a27a2ee (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
#!/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"
}

cd $HOME/exchange
fetch
./bootstrap
./configure --enable-only-doc
make pdf
make html
doxygen

mkdir -p $HOME/build/exchange/manual/pdf/
mkdir -p $HOME/build/exchange/manual/html
mkdir -p $HOME/build/exchange/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/