-rm -f upload.sh make-dist.sh make-doc.sh cvsbp-prepare
-rm -f `find . -type f -name .cvsignore`
-if [ -f doc/Makefile ]; then
- pushd doc > /dev/null
- make
- popd > /dev/null
+#!/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`
+rm -f cvsbp-prepare