Commit 20b85467 authored by Tim Lauridisen's avatar Tim Lauridisen

added tags to make releases more easy

parent 00b88cb5
......@@ -3,6 +3,10 @@ PKGNAME = yum-utils
UTILS = package-cleanup repoclosure repomanage repoquery repo-graph repo-rss yumdownloader yum-builddep repotrack reposync
VERSION=$(shell awk '/Version:/ { print $$2 }' ${PKGNAME}.spec)
RELEASE=$(shell awk '/Release:/ { print $$2 }' ${PKGNAME}.spec)
WEBPATH = /home/groups/yum/web/download/yum-utils/
CVS_TAG = ${PKGNAME}-$(shell echo $(VERSION) | sed -e 's/\./-/g')
rm -f *.pyc *.pyo *~
......@@ -17,7 +21,7 @@ install:
for d in $(SUBDIRS); do make DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done
@rm -rf ${PKGNAME}-%{VERSION}.tar.gz
@rm -rf ${PKGNAME}-${VERSION}.tar.gz
@rm -rf /tmp/${PKGNAME}-$(VERSION) /tmp/${PKGNAME}
@dir=$$PWD; cd /tmp; cp -a $$dir ${PKGNAME}
@rm -f /tmp/${PKGNAME}/${PKGNAME}-daily.spec
......@@ -26,3 +30,17 @@ archive:
@rm -rf /tmp/${PKGNAME}-$(VERSION)
@echo "The archive is in ${PKGNAME}-$(VERSION).tar.gz"
@cvs commit -m "bumped yum-utils version to $(VERSION)"
@$(MAKE) ChangeLog
@cvs commit -m "updated ChangeLog"
@cvs tag $(CVS_TAG)
@$(MAKE) archive
@scp ${PKGNAME}-${VERSION}.tar.gz $(WEBHOST):$(WEBPATH)/
@rm -rf ${PKGNAME}-${VERSION}.tar.gz
ChangeLog: FORCE
@cvs2cl --utc
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment