[yum-cvs] yum Makefile,1.10,1.11
Menno Smits
mjs at linux.duke.edu
Sun Mar 12 09:49:51 UTC 2006
Update of /home/groups/yum/cvs/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv26350
Modified Files:
Makefile
Log Message:
Have the archive and daily targets pull down PLUGINS and FAQ from the wiki.
Merged the implementation of the archive and daily targets.
Index: Makefile
===================================================================
RCS file: /home/groups/yum/cvs/yum/Makefile,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- Makefile 4 Jul 2005 00:50:22 -0000 1.10
+++ Makefile 12 Mar 2006 09:49:49 -0000 1.11
@@ -31,22 +31,21 @@
for d in $(SUBDIRS); do make PYTHON=$(PYTHON) DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done
-archive:
- @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
- @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"
+archive: remove_spec = ${PKGNAME}-daily.spec
+archive: _archive
-daily:
+daily: remove_spec = ${PKGNAME}.spec
+daily: _archive
+
+_archive:
@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}.spec
+ 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
+ @rm -f /tmp/${PKGNAME}/$(remove_spec)
@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"
+
More information about the Yum-cvs-commits
mailing list