summaryrefslogtreecommitdiff
path: root/taler-docbuild/update_doc_merchant.sh
blob: 39cd94ed4f27b2be1a2d637cc096859dc35d4ce8 (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
#!/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/merchant
fetch
./bootstrap
./configure --enable-only-doc
make
make html pdf
doxygen

mkdir -p $HOME/build/merchant-backend/manual/pdf/
mkdir -p $HOME/build/merchant-backend/manual/html
mkdir -p $HOME/build/merchant-backend/doxygen

cp doc/*.pdf $HOME/build/merchant-backend/manual/pdf/
cp doc/*.{html,png,css,js} $HOME/build/merchant-backend/manual/html/
cp -r doxygen-doc/html/* $HOME/build/merchant-backend/doxygen/