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 14autoconf && \ 15 ./configure --with-papersize=letter && \ 16 make smbdotconf/parameters.all.xml && \ 17 make release 18 19if [ $? != 0 ]; then 20 _exit "Docs build failed!" 21fi 22 23mkdir -p ../docs 24rsync -Ca --delete --exclude=.git output/ ../docs/ 25rsync -Ca --exclude=.svn registry ../docs/ 26rsync -Ca --exclude=.svn archives/ ../docs/ 27 28cd ../docs || _exit "Error changing dir to ${DOCSDIR}/../docs/" 29 30/bin/rm -rf test.pdf Samba4*pdf htmldocs/Samba4* htmldocs/test 31mv manpages-3 manpages 32mv htmldocs/manpages-3 htmldocs/manpages 33 34cd ../docs-xml || _exit "Error changing dir to ${DOCSDIR}/../docs-xml/" 35make distclean 36 37echo "Success" 38popd 39exit 40