DEBPKG=ctsim
PKG=ctsim
VERSION=`sed -n -e "s/${DEBPKG} (\(.*\)-[0-9]).*/\1/p" < debian/changelog |head -1`
-echo $VERSION
TOPDIR=`basename $PWD`
DISTDIR=${PKG}-${VERSION}
rm -rf `find . -type d -name CVS`
rm -f `find . -type f -name '*~' -or -name '.*~' -or \
-name '.#*' -or -name '#*#' -or -name '*.fig' -or -name '*.psd'`
-rm -rf images copy make-dist.sh make-doc.sh doc
+rm -rf images copy make-dist.sh make-doc.sh doc stamp-h.in build-stamp \
+ configure-stamp
popd
# Create original distribution archives