X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=make-dist.sh;h=7934db6be0f3c66800f73f91cf206b4f743e712d;hb=7dd9d98d678ebbb1b15e7b6e8018d720cdd27950;hp=d974a75d6ad5bc0f63a815002953321375ef72d7;hpb=45eaeadd2ec8aa40dbe794cd6f4b31027a84aa4e;p=ctsim.git diff --git a/make-dist.sh b/make-dist.sh index d974a75..7934db6 100755 --- a/make-dist.sh +++ b/make-dist.sh @@ -15,37 +15,38 @@ DISTDIR=${PKG}-${VERSION} 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 echo "building tarballs" -cd .. +pushd .. rm -f ${PKG}_${VERSION}.tar.gz ${DEBPKG}_${VERSION}.orig.tar.gz rm -rf ${DISTDIR} ${DEBDIR} ${DISTDIR}.zip cp -a ${TOPDIR} ${DISTDIR} # Remove junk from distribution dir -find ${DISTDIR} -type f -name .cvsignore -exec rm {} \; -find ${DISTDIR} -type d -name CVS | xargs rm -r -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 +pushd ${DISTDIR} +make clean +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 '#*#'` # Create original distribution archives rm -rf ${DISTDIR}/debian -cd ${DISTDIR} +pushd ${DISTDIR} make distclean -cd .. +popd GZIP=-9 tar czf ${DISTDIR}.tar.gz ${DISTDIR} -find ${DISTDIR} -type f -and -name *.c -or -name *.h -or -name *.list -or \ - -name Makefile -or -name ChangeLog -or \ - -name COPYRIGHT -or -name TODO -or -name README -or -name INSTALL \ - -or -name NEWS -or -name *.sgml -or -name COPYING* -or -name catalog \ - | xargs unix2dos +unix2dos `find ${DISTDIR} -type f -and -name '*.c' -or -name '*.h' -or \ + -name Makefile -or -name ChangeLog -or -name COPYRIGHT -or -name TODO -or \ + -name README -or -name INSTALL -or -name NEWS -or -name '*.tex' -or \ + -name COPYING* -or -name catalog` zip -rq ${DISTDIR}.zip ${DISTDIR} rm -rf ${DISTDIR} @@ -60,14 +61,15 @@ cp -a ${TOPDIR}/debian ${DEBDIR} # dpkg-source ${DEBDIR} ${PKG}_${VERSION}.orig.tar.gz -cd ${DEBDIR} +pushd ${DEBDIR} dpkg-buildpackage -rfakeroot -kkevin@b9.com #-tc -b -cd .. - +popd +rm -r ${DEBDIR} lintian ${DEBPKG}_${VERSION}-*.changes -mkdir -p /usr/local/share/Packages/${DEBPKG} -# mv ${DEBPKG}_${VERSION}* /usr/local/share/Packages/${DEBPKG} -cd ${TOPDIR} +mkdir -p /usr/local/src/Packages/${DEBPKG} +mv ${DEBPKG}_${VERSION}* /usr/local/src/Packages/${DEBPKG} + +popd exit 0