On Tue, 2007-04-10 at 20:20 -0400, seth vidal wrote:
> On Wed, 2007-04-11 at 00:43 +0200, Hans-Peter Jansen wrote:
> > Am Dienstag, 10. April 2007 07:19 schrieb seth vidal:
> > > Tarball:
> > > http://linux.duke.edu/yum/download/3.0/yum-3.0.6.tar.gz
> >
> > Any specific reason, why the tarball contains all those CVS dirs, or just
> > escaped your notice?
> >
> It doesn't contain anymore than any other release of yum has. or do you
> mean in general, why do we leave the CVS dirs in place? and if so I'd
> say you might have a point. :)
In fact, what about the following to add a 'make dist' target that does
an export off of the tag for the release?
Jeremy
Index: Makefile
===================================================================
RCS file: /home/groups/yum/cvs/yum/Makefile,v
retrieving revision 1.17
diff -u -u -r1.17 Makefile
--- Makefile 15 Feb 2007 17:28:48 -0000 1.17
+++ Makefile 11 Apr 2007 00:41:02 -0000
@@ -4,7 +4,7 @@
PKGNAME = yum
VERSION=$(shell awk '/Version:/ { print $$2 }' ${PKGNAME}.spec)
RELEASE=$(shell awk '/Release:/ { print $$2 }' ${PKGNAME}.spec)
-CVSTAG=yum-$(subst .,_,$(VERSION)-$(RELEASE))
+CVSTAG=yum-$(subst .,-,$(VERSION))
PYTHON=python
all: subdirs
@@ -49,7 +49,7 @@
daily: _archive
_archive:
- @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}
lynx -dump 'http://wiki.linux.duke.edu/WritingYumPlugins?action=print' > /tmp/${PKGNAME}/PLUGINS
@@ -60,3 +60,13 @@
@rm -rf /tmp/${PKGNAME}-$(VERSION)
@echo "The archive is in ${PKGNAME}-$(VERSION).tar.gz"
+dist:
+ @rm -rf ${PKGNAME}-%{VERSION}.tar.gz
+ @rm -rf /tmp/${PKGNAME}-$(VERSION) /tmp/${PKGNAME}
+ @dir=$$PWD; CVSROOT=`cat CVS/Root`; cd /tmp; cvs -Q export -r ${CVSTAG} ${PKGNAME}
+ lynx -dump 'http://wiki.linux.duke.edu/WritingYumPlugins?action=print' > /tmp/${PKGNAME}/PLUGINS
+ lynx -dump 'http://wiki.linux.duke.edu/YumFaq?action=print' > /tmp/${PKGNAME}/FAQ
+ @mv /tmp/${PKGNAME} /tmp/${PKGNAME}-$(VERSION)
+ @dir=$$PWD; cd /tmp; tar cvzf $$dir/${PKGNAME}-$(VERSION).tar.gz ${PKGNAME}-$(VERSION)
+ @rm -rf /tmp/${PKGNAME}-$(VERSION)
+ @echo "The archive is in ${PKGNAME}-$(VERSION).tar.gz"
_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel