Add Python bindings to libvserver.
[util-vserver.git] / update-doc
1 #! /bin/sh
2
3 test -n "$1" || {
4     echo "No target directory given; aborting...">&2
5     exit 1
6 }
7
8 test -d "$1"/CVS || {
9     echo "Target directory does not seem to be CVS managed; aborting..." >&2
10     exit 1
11 }
12
13 tmp=$(mktemp -d /tmp/uv.XXXXXX)/doc || exit 1
14 trap "rm -rf $tmp" EXIT
15
16 mkdir -p "$tmp"/{apidoc/html,conf}
17 install -p -m644 doc/*.css doc/*.html             "$tmp"/conf/
18 install -p -m644 lib/apidoc/latex/refman.pdf      "$tmp"/apidoc/refman.pdf
19 install -p -m644 lib/apidoc/html/*.{css,html,png} "$tmp"/apidoc/html/
20
21 rsync -av --delete --exclude=lt2004 --exclude=virtual-servers.pdf --exclude=css \
22       --exclude=img --exclude=CVS --exclude=.symlinks --exclude=.htaccess "$tmp"/ "$1"/