build_docs: Use 'make distclean' instead of 'make clean'.
[kai/samba-autobuild/.git] / release-scripts / build-docs
index 529a1c07f18808375ffd802a9c3c15bc37251c3c..bde87f49bdac26afe69cf9b8d4b6e7260dcc281c 100755 (executable)
@@ -4,8 +4,11 @@ DOCSRCDIR=`dirname $0`/../docs-xml
 
 cd $DOCSRCDIR || exit 1
 
-git-clean -d -x -f
-autoconf && ./configure --with-papersize=letter && make release
+git clean -d -x -f
+autoconf && \
+       ./configure --with-papersize=letter && \
+       make smbdotconf/parameters.all.xml && \
+       make release
 
 if [ $? != 0 ]; then
         echo "Docs build failed!"
@@ -22,4 +25,7 @@ cd ../docs || exit 1
 mv manpages-3 manpages
 mv htmldocs/manpages-3 htmldocs/manpages
 
-exit
\ No newline at end of file
+cd ../docs-xml || exit 1
+make distclean
+
+exit