ctdb-protocol: Add missing push support for new controls
[Samba.git] / release-scripts / build-docs
blob8b7c7b3cedbf0523ce3876ffa13818bc710ada2c
1 #!/bin/sh
3 _exit()
5 echo "$@"
6 popd
7 exit 1
10 DOCSRCDIR=$(dirname $0)/../docs-xml
12 pushd $DOCSRCDIR || exit 1
14 git clean -d -x -f
15 export XML_CATALOG_FILES="file:///etc/xml/catalog file://$(pwd)/build/catalog.xml"
16 autoconf &&
17 ./configure --with-papersize=letter &&
18 make smbdotconf/parameters.all.xml &&
19 make release
21 if [ $? != 0 ]; then
22 _exit "Docs build failed!"
25 mkdir -p ../docs
26 rsync -Ca --delete --exclude=.git output/ ../docs/
27 rsync -Ca --exclude=.svn registry ../docs/
28 rsync -Ca --exclude=.svn archives/ ../docs/
30 cd ../docs || _exit "Error changing dir to ${DOCSDIR}/../docs/"
32 /bin/rm -rf test.pdf Samba4*pdf htmldocs/Samba4* htmldocs/test
34 cd ../docs-xml || _exit "Error changing dir to ${DOCSDIR}/../docs-xml/"
35 make distclean
37 echo "Success"
38 popd
39 exit