summaryrefslogtreecommitdiff
path: root/taler-build/update_doc_exchange.sh
blob: f5054d0766fd36474e61048c2bef7e5b7c279e0a (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
#!/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
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/