-#!/bin/bash
-#
-# Creates upstream packages
-# Programmer: Kevin Rosenberg
+#!/bin/bash -e
+
+bups.sh -Sctsim -d"-name doc -or -name images"
+exit 0
-set -e # abort on error
DEBPKG=ctsim
PKG=ctsim
fi
-if [ ! -f docs/${PKG}.htb -o ! -f docs/html/${PKG}_contents.html -o ! -f docs/${PKG}.pdf ]; then
- echo "Making documentation"
- ${WORK_DIR}/make-doc.sh
-fi
+echo "Making documentation"
+cd ${WORK_DIR}/doc
+make
-# Prepare for archive
+echo "Copying archive"
+cd ${WORK_HOME}
rm -f ${PKG}_${VERSION}.tar.gz ${DEBPKG}_${VERSION}.orig.tar.gz
rm -rf ${DISTDIR} ${DEBDIR} ${DISTDIR}.zip
cp -a ${WORK_DIR} ${DISTDIR}
echo "Cleaning distribution directory ${DISTDIR}"
cd ${DISTDIR}
-make distclean
-rm -f make-doc.sh
+test Makefile && make distclean > /dev/null 2>&1
rm -f `find . -type f -name .cvsignore`
rm -rf `find . -type d -name CVS -or -name .deps`
rm -f `find . -type f -name '*~' -or -name '.#*' -or -name '#*#' -or -name ".*~" -or -name "*.o" -or -name "*.a"`