install-guide Makefile,1.16,1.17

Paul W. Frields (pfrields) fedora-docs-commits at redhat.com
Tue Jan 3 02:02:02 UTC 2006


Author: pfrields

Update of /cvs/docs/install-guide
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29223/install-guide

Modified Files:
	Makefile 
Log Message:
Remove old munge from packaging experiments


Index: Makefile
===================================================================
RCS file: /cvs/docs/install-guide/Makefile,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- Makefile	14 Dec 2005 22:59:52 -0000	1.16
+++ Makefile	3 Jan 2006 02:01:39 -0000	1.17
@@ -33,67 +33,3 @@
 #${DOCBASE}-en/index.html::
 #	echo FINISHED AT LAST
 ######################################################
-# Some packaging specific vars
-VERSION=$(shell grep BOOKID $(DOCBASE)-en.xml | sed 's/<!ENTITY BOOKID "[^0-9\.]\+//' | sed 's/ .\+//')
-DATE=${shell grep BOOKID $(DOCBASE)-en.xml | sed 's/.\+(//' | sed 's/).\+//' }
-NOW=$(shell date +"%a %b %e %Y")
-SPECIN=../docs-common/packaging/fedora-doc.spec.in.common
-OMFIN=../docs-common/packaging/fedora-doc.omf.in.common
-DESKTOPIN=../docs-common/packaging/fedora-doc.desktop.in.common
-DOCSPEC=$(PWD)/SPECS/$(DOCBASE).spec
-DOCOMF=$(PWD)/SOURCES/fedora-doc-$(DOCBASE)-C.omf
-DOCDESKTOP=$(PWD)/SOURCES/fedora-doc-$(DOCBASE).desktop
-DOCSRCTAR=$(PWD)/SOURCES/$(DOCBASE)-$(VERSION).src.tar.gz
-TITLE=$(shell ../docs-common/packaging/titlegrab.py $(DOCBASE)-en.xml | sed 's/^ \+//')
-######################################################
-# Some RPM flags...
-######################################################
-RPMFLAGS=--define "docbase $(DOCBASE)" --define "version $(VERSION)" --define "_topdir $(PWD)"
-######################################################
-
-
-clean::
-	rm -rf fedora-doc-$(DOCBASE)*.rpm
-
-
-rpm: clean
-#
-# Make RPM-compliant tarball of source XML and other stuff
-	mkdir $(DOCBASE)-$(VERSION)
-	find . -maxdepth 1 -type f ! \( -name '*~' -o -name 'Makefile*' \) \
-		| cpio -pamdv $(DOCBASE)-$(VERSION)
-	find . -maxdepth 1 -type d ! \( -name '$(DOCBASE)-$(VERSION)' \
-		-o -name 'CVS' -o -name '*~' -o -name '$(DOCBASE)*' \) \
-		| cpio -pamdv $(DOCBASE)-$(VERSION)
-#
-# Make RPM build tree; don't rely on local user's setup
-	mkdir -p {BUILD,RPMS/noarch,SOURCES,SPECS,SRPMS}
-	tar -zcvf $(DOCSRCTAR) $(DOCBASE)-$(VERSION)
-	rm -rf $(DOCBASE)-$(VERSION)/
-#
-# Make rpmlint happy with a changelog entry
-# FIXME: Maybe more magic would make this stickier; pity
-#        I'm no magician...
-	sed 's/\(%changelog\)/\1\n* $(NOW) Fedora Docs Project <fedora-docs-list at redhat.com> - $(VERSION)-1\n- Update to version $(VERSION)\n/' \
-		$(SPECIN) > $(DOCSPEC)
-#
-# Fill in files
-# FIXME:  Needs to be multiplexed for LANGUAGES (see above)
-	cp $(OMFIN) $(DOCOMF)
-	cp $(DESKTOPIN) $(DOCDESKTOP)
-	sed -i 's/@VERSION@/$(VERSION)/g' $(DOCOMF)
-	sed -i 's/@DATE@/$(DATE)/g' $(DOCOMF)
-	sed -i 's/@TITLE@/$(TITLE)/g' $(DOCOMF)
-	sed -i 's/@DOCBASE@/$(DOCBASE)/g' $(DOCOMF)
-	sed -i 's/@VERSION@/$(VERSION)/g' $(DOCDESKTOP)
-	sed -i 's/@DATE@/$(DATE)/g' $(DOCDESKTOP)
-	sed -i 's/@TITLE@/$(TITLE)/g' $(DOCDESKTOP)
-	sed -i 's/@DOCBASE@/$(DOCBASE)/g' $(DOCDESKTOP)
-#
-# Do the build...
-#
-	rpmbuild -bb $(RPMFLAGS) $(DOCSPEC)
-	mv RPMS/noarch/*.rpm .
-	rpmbuild --clean --rmsource $(RPMFLAGS) $(DOCSPEC)
-	rm -rf {BUILD,RPMS,SOURCES,SPECS,SRPMS}
-	rm -rf $(DOCBASE)-$(VERSION)




More information about the Fedora-docs-commits mailing list