r2232: Auto commit for Debian build
[ctsim.git] / debian / make-upstream.sh
index ca36845277eede52d23e62a69ab8947b55236a96..d970cb103df7c2dbbdca1fbb286d3efec7ec6517 100755 (executable)
@@ -1,9 +1,8 @@
-#!/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
@@ -33,20 +32,19 @@ if [ -f ${PACKAGE_DIR}/${DEBPKG}_${VERSION}.orig.tar.gz ]; then
 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"`