tevent: call epoll_panic() if EPOLL_CTL_DEL failed
[Samba/gebeck_regimport.git] / release-scripts / build-docs
blobe909e6e6c37f6b11f8e7b90743b91f90f0de02a9
1 #!/bin/sh
3 _exit() {
4 echo $@
5 popd
6 exit 1
9 DOCSRCDIR=`dirname $0`/../docs-xml
11 pushd $DOCSRCDIR || exit 1
13 git clean -d -x -f
14 export XML_CATALOG_FILES="file:///etc/xml/catalog file://$(pwd)/build/catalog.xml"
15 autoconf && \
16 ./configure --with-papersize=letter && \
17 make smbdotconf/parameters.all.xml && \
18 make release
20 if [ $? != 0 ]; then
21 _exit "Docs build failed!"
24 mkdir -p ../docs
25 rsync -Ca --delete --exclude=.git output/ ../docs/
26 rsync -Ca --exclude=.svn registry ../docs/
27 rsync -Ca --exclude=.svn archives/ ../docs/
29 cd ../docs || _exit "Error changing dir to ${DOCSDIR}/../docs/"
31 /bin/rm -rf test.pdf Samba4*pdf htmldocs/Samba4* htmldocs/test
33 cd ../docs-xml || _exit "Error changing dir to ${DOCSDIR}/../docs-xml/"
34 make distclean
36 echo "Success"
37 popd
38 exit