#!/bin/sh
# Invoke with ./copy-files.sh /absolute/path/to/built documents version
# For example, ./copy-files.sh /home/foo/gnucash-docs-release/build v2.6
base="$PWD/$2"

cd $1/guide
for i in C de it ja; do
    rsync -av --delete $i/gnucash-guide{,.pdf,.epub,.mobi} $base/$i/
done
cd $1/help
for i in C de it; do
    rsync -av --delete $i/gnucash-help{,.pdf,.epub,.mobi} $base/$i/
done
