DEBDIR=${DEBPKG}-${VERSION}
TAG=upstream_version_`echo $VERSION | tr . _`
-echo "(re)tagging with release tag '$TAG'"
-cvs -q rtag -d $TAG $PKG
-cvs -q tag -F $TAG
+#echo "(re)tagging with release tag '$TAG'"
+#cvs -q rtag -d $TAG $PKG
+#cvs -q tag -F $TAG
# build the tarball
# Remove junk from distribution dir
find ${DISTDIR} -type f -name .cvsignore -exec rm {} \;
find ${DISTDIR} -type d -name CVS | xargs rm -r
+find ${DISTDIR} -type f -name *~ -or -name ".#*" -or -name "#*#" |xargs rm -f
find ${DISTDIR}/doc -type f -and -name *.tex -or -name *.aux -or \
- -name *.log -or -name *.out -or -name *.dvi -or \
- -name *~ -or -name ".#*" -or -name "#*#" |xargs rm -f
+ -name *.log -or -name *.out -or -name *.dvi | xargs rm -f
# Create original distribution archives
rm -rf ${DISTDIR}/debian
cd ${DEBDIR}
dpkg-buildpackage -rfakeroot -kkevin@b9.com #-tc -b
cd ..
-
+rm -r ${DEBDIR}
lintian ${DEBPKG}_${VERSION}-*.changes
-mkdir -p /usr/local/share/Packages/${DEBPKG}
-# mv ${DEBPKG}_${VERSION}* /usr/local/share/Packages/${DEBPKG}
+mkdir -p /usr/local/src/Packages/${DEBPKG}
+mv ${DEBPKG}_${VERSION}* /usr/local/src/Packages/${DEBPKG}
cd ${TOPDIR}
exit 0