release-scripts: remove commented out line from git-version
[samba.git] / release-scripts / build-manpages-nogit
1 #!/bin/sh
2 #
3 # Copyright (C) Michael Adam 2010
4
5 _exit() {
6         echo $@
7         popd
8         exit 1
9 }
10
11 DIRNAME=$(dirname $0)
12 DOCS_XML_DIR=${DIRNAME}/../docs-xml
13 DOCS_DIR=${DIRNAME}/../docs
14
15 pushd ${DOCS_XML_DIR} || exit 1
16
17 autoconf || _exit "Error running autoconf."
18
19 ./configure || _exit "Error running configure."
20
21 export XML_CATALOG_FILES="file:///etc/xml/catalog file://$(pwd)/build/catalog.xml"
22
23 make clean || _exit "Error running make clean"
24
25 # re-establish catalog (has been removed by make clean...)
26 ./config.status
27
28 make manpages3 || _exit "Error running make manpages3"
29
30 popd
31
32 test -e ${DOCS_DIR}/manpages && rm -rf ${DOCS_DIR}/manpages
33 mkdir -p ${DOCS_DIR}/manpages
34
35 rsync -Ca ${DOCS_XML_DIR}/output/manpages-3/ ${DOCS_DIR}/manpages
36
37 echo "Success"
38 exit
39
40 # END