#!/bin/bash
+# Make documentation to put in debian package
+# This must match prebuilt upstream documentation
+
+if [ -d doc/Makefile ]; then
+ cd doc
+ make all
+ cd ..
+fi
+
# Clean checked out CVS directory
rm -f upload.sh make-dist.sh make-doc.sh
rm -f `find . -type f -name .cvsignore`
cp -a ${TOPDIR} ${DISTDIR}
echo "Cleaning distribution directory ${DISTDIR}"
-rm -f ${DISTDIR}/upload.sh ${DISTDIR}/make-dist.sh
+rm -f ${DISTDIR}/upload.sh ${DISTDIR}/make-dist.sh ${DISTDIR}/cvsbp-prepare
rm -f `find ${DISTDIR} -type f -name .cvsignore`
rm -rf `find ${DISTDIR} -type d -name CVS`
rm -f `find ${DISTDIR} -type f -name '*~' -or -name '#*' -or -name '#*#'`