r1893: *** empty log message ***
[ctsim.git] / make-dist.sh
index 7934db6be0f3c66800f73f91cf206b4f743e712d..a5d6edb406321da6e01e40142e41a60c579aaa53 100755 (executable)
@@ -29,18 +29,17 @@ cp -a ${TOPDIR} ${DISTDIR}
 
 # Remove junk from distribution dir
 pushd ${DISTDIR}
-make clean
+make distclean
 popd
 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 '.#*' -or -name '#*#'`
+   -name '.#*' -or -name '#*#' -or -name '*.fig' -or -name '*.psd'`
+
+rm -rf ${DISTDIR}/images ${DISTDIR}/copy ${DISTDIR}/make-dist.sh
 
 # Create original distribution archives
 rm -rf ${DISTDIR}/debian
-pushd ${DISTDIR}
-make distclean
-popd
 GZIP=-9 tar czf ${DISTDIR}.tar.gz ${DISTDIR}
 
 unix2dos `find ${DISTDIR} -type f -and -name '*.c' -or -name '*.h' -or \