s4/torture: Fix misplaced positional arguments for u64 comparison
[gd/samba-autobuild/.git] / release-scripts / build-docs
1 #!/bin/sh
2
3 _exit()
4 {
5         echo "$@"
6         popd
7         exit 1
8 }
9
10 DOCSRCDIR=$(dirname $0)/../docs-xml
11
12 pushd $DOCSRCDIR || exit 1
13
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
20
21 if [ $? != 0 ]; then
22         _exit "Docs build failed!"
23 fi
24
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/
29
30 cd ../docs || _exit "Error changing dir to ${DOCSDIR}/../docs/"
31
32 /bin/rm -rf test.pdf Samba4*pdf htmldocs/Samba4* htmldocs/test
33
34 cd ../docs-xml || _exit "Error changing dir to ${DOCSDIR}/../docs-xml/"
35 make distclean
36
37 echo "Success"
38 popd
39 exit