net: now that "net rpc user" uses netapi calls exclusivly, net rpc shell needs
[kai/samba.git] / release-scripts / build-docs
1 #!/bin/sh
2
3 DOCSRCDIR=`dirname $0`/../docs-xml
4
5 cd $DOCSRCDIR || exit 1
6
7 git-clean -d -x -f
8 autoconf && ./configure --with-papersize=letter && make release
9
10 if [ $? != 0 ]; then
11         echo "Docs build failed!"
12         exit 1
13 fi
14
15 mkdir ../docs
16 rsync -Ca --delete --exclude=.git output/ ../docs/
17 rsync -Ca --exclude=.svn registry ../docs/
18 rsync -Ca --exclude=.svn archives/ ../docs/
19
20 cd ../docs || exit 1
21 /bin/rm -rf test.pdf Samba4*pdf htmldocs/Samba4* htmldocs/test
22 mv manpages-3 manpages
23 mv htmldocs/manpages-3 htmldocs/manpages
24
25 exit