X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=make-upstream.sh;h=71b6632e80b3864d691bf2fdc3149de4a98700f1;hb=e07dc7255b7df36b81b7f95db2e95f6c9c78e70a;hp=e83d933284e7094291ffcd5cde1a342d9bdcaf3b;hpb=91f9f024bee1ee744a7936c522ad2c4456726f68;p=uffi.git diff --git a/make-upstream.sh b/make-upstream.sh index e83d933..71b6632 100755 --- a/make-upstream.sh +++ b/make-upstream.sh @@ -32,25 +32,18 @@ DEBPKG=cl-uffi PKG=uffi TOPDIR=`pwd` -VERSION=`cat VERSION` -DEBVERSION=`sed -n -e "s/${DEBPKG} (\(.*\)).*/\1/p" < debian/changelog |head -1` +VERSION=`sed -n -e "s/${DEBPKG} (\(.*\)-[0-9.]).*/\1/p" < debian/changelog |head -1` + PACKAGE_DIR=/usr/local/src/Packages/${DEBPKG} DISTDIR=${PKG}-${VERSION} DEBDIR=${DEBPKG}-${VERSION} if [ ! -z ${opt_tag} ]; then - DEB_TAG=debian_version_`echo ${DEBVERSION} | tr . _` - UPSTREAM_TAG=upstream_version_`echo ${VERSION} | tr . _` - echo "(Re-)tagging with Debian tag '${DEB_TAG}'" - cvs -q rtag -d ${DEB_TAG} ${PKG} > /dev/null - cvs -q tag -F ${DEB_TAG} > /dev/null - - # Retag with upstream tag if release not 0 or 1 - if [ "`echo ${DEBVERSION} | egrep '\-0$\-1$]'`" != "" ]; then + UPSTREAM_TAG=upstream_version_`echo ${VERSION} | tr . _` echo "(Re-)tagging with Upstream tag '${UPSTREAM_TAG}'" cvs -q rtag -d $UPSTREAM_TAG $PKG > /dev/null cvs -q tag -F $UPSTREAM_TAG > /dev/null - fi + fi # Prepare for archive cd .. @@ -60,10 +53,10 @@ cp -a ${TOPDIR} ${DISTDIR} echo "Cleaning distribution directory ${DISTDIR}" cd ${DISTDIR} -rm -f upload.sh make-dist.sh cvsbp-prepare +rm -f upload.sh make-upload.sh make-debian.sh cvsbp-prepare.sh rm -f `find . -type f -name .cvsignore` rm -rf `find . -type d -name CVS` -rm -f `find . -type f -name '*~' -or -name '.#*' -or -name '#*#' -or -name ".*~'` +rm -f `find . -type f -name '*~' -or -name '.#*' -or -name '#*#' -or -name ".*~"` rm -f `find doc -type f -name \*.tex -or -name \*.aux -or \ -name \*.log -or -name \*.out -or -name \*.dvi` cd ..