source: vendor/current/release-scripts/build-docs@ 988

Last change on this file since 988 was 988, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.3

File size: 783 bytes
Line 
1#!/bin/sh
2
3_exit() {
4 echo $@
5 popd
6 exit 1
7}
8
9DOCSRCDIR=`dirname $0`/../docs-xml
10
11pushd $DOCSRCDIR || exit 1
12
13git clean -d -x -f
14export XML_CATALOG_FILES="file:///etc/xml/catalog file://$(pwd)/build/catalog.xml"
15autoconf && \
16 ./configure --with-papersize=letter && \
17 make smbdotconf/parameters.all.xml && \
18 make release
19
20if [ $? != 0 ]; then
21 _exit "Docs build failed!"
22fi
23
24mkdir -p ../docs
25rsync -Ca --delete --exclude=.git output/ ../docs/
26rsync -Ca --exclude=.svn registry ../docs/
27rsync -Ca --exclude=.svn archives/ ../docs/
28
29cd ../docs || _exit "Error changing dir to ${DOCSDIR}/../docs/"
30
31/bin/rm -rf test.pdf Samba4*pdf htmldocs/Samba4* htmldocs/test
32
33cd ../docs-xml || _exit "Error changing dir to ${DOCSDIR}/../docs-xml/"
34make distclean
35
36echo "Success"
37popd
38exit
Note: See TracBrowser for help on using the repository browser.