Use cluster-aware procid_is_me instead of comparing pid's
[Samba/bb.git] / release-scripts / build-docs
blob5da641ac691edb9698ad3259824175f6822edcaa
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 autoconf && \
15 ./configure --with-papersize=letter && \
16 make smbdotconf/parameters.all.xml && \
17 make release
19 if [ $? != 0 ]; then
20 _exit "Docs build failed!"
23 mkdir -p ../docs
24 rsync -Ca --delete --exclude=.git output/ ../docs/
25 rsync -Ca --exclude=.svn registry ../docs/
26 rsync -Ca --exclude=.svn archives/ ../docs/
28 cd ../docs || _exit "Error changing dir to ${DOCSDIR}/../docs/"
30 /bin/rm -rf test.pdf Samba4*pdf htmldocs/Samba4* htmldocs/test
31 mv manpages-3 manpages
32 mv htmldocs/manpages-3 htmldocs/manpages
34 cd ../docs-xml || _exit "Error changing dir to ${DOCSDIR}/../docs-xml/"
35 make distclean
37 echo "Success"
38 popd
39 exit