samba.provision: Add package with provision and backend modules.
[Samba.git] / release-scripts / build-manpages-nogit
blobc39b6855b12002124d9222401a12dc56b3863134
1 #!/bin/sh
3 # Copyright (C) Michael Adam 2010
5 _exit() {
6 echo $@
7 popd
8 exit 1
11 DIRNAME=$(dirname $0)
12 DOCS_XML_DIR=${DIRNAME}/../docs-xml
13 DOCS_DIR=${DIRNAME}/../docs
15 pushd ${DOCS_XML_DIR} || exit 1
17 #git clean -xdf || _exit "Error running git clean."
19 autoconf || _exit "Error running autoconf."
21 ./configure || _exit "Error running configure."
23 export XML_CATALOG_FILES="file:///etc/xml/catalog file://$(pwd)/build/catalog.xml"
25 make clean || _exit "Error running make clean"
27 # re-establish catalog (has been removed by make clean...)
28 ./config.status
30 make manpages3 || _exit "Error running make manpages3"
32 popd
34 test -e ${DOCS_DIR}/manpages && rm -rf ${DOCS_DIR}/manpages
35 mkdir -p ${DOCS_DIR}/manpages
37 rsync -Ca ${DOCS_XML_DIR}/output/manpages-3/ ${DOCS_DIR}/manpages
39 echo "Success"
40 exit
42 # END