X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=make-dist.sh;h=22acd2bf0e21a69ccb59cebc426e942bf7adedda;hb=5e157ed9cef7cee901eebc373fb96e3be6a81de5;hp=40bbf0c6b95a5b1700d71c3415112ae44cf4147f;hpb=39147284586be2df9cfd480ae2367b329738250b;p=uffi.git diff --git a/make-dist.sh b/make-dist.sh index 40bbf0c..22acd2b 100755 --- a/make-dist.sh +++ b/make-dist.sh @@ -14,12 +14,18 @@ DEBVERSION=`sed -n -e "s/${DEBPKG} (\(.*\)).*/\1/p" < debian/changelog |head -1 DISTDIR=${PKG}-${VERSION} DEBDIR=${DEBPKG}-${VERSION} -# TAG=debian_version_`echo ${DEBVERSION} | tr . _` -TAG=upstream_version_`echo ${VERSION} | tr . _` -echo "(re)tagging with release tag '$TAG'" +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 $TAG $PKG > /dev/null cvs -q tag -F $TAG > /dev/null +# Retag with upstream tag if release not 0 or 1 +if [ "`echo ${DEBVERSION} | egrep '\-0$\-1$]'`" != "" ]; then + 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 # Prepare for archive cd ..