fedora-release Makefile,NONE,1.1

Bill Nottingham (notting) fedora-extras-commits at redhat.com
Wed May 4 18:45:33 UTC 2005


Author: notting

Update of /cvs/fedora/fedora-release
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv12099

Added Files:
	Makefile 
Log Message:
add semi-standard makefile



--- NEW FILE Makefile ---
VERSION=$(shell awk '/%define release_version/ { print $$3 }' fedora-release.spec)

CVSROOT = $(shell cat CVS/Root 2>/dev/null || :)

CVSTAG = V$(subst .,-,$(VERSION))

all:

tag-archive:
	@cvs -Q tag -F $(CVSTAG)

create-archive:
	@rm -rf /tmp/fedora-release
	@cd /tmp ; cvs -Q -d $(CVSROOT) export -r$(CVSTAG) fedora-release || echo "Um... export aborted."
	@mv /tmp/fedora-release /tmp/fedora-release-$(VERSION)
	@cd /tmp ; tar -czSpf fedora-release-$(VERSION).tar.gz fedora-release-$(VERSION)
	@rm -rf /tmp/fedora-release-$(VERSION)
	@cp /tmp/fedora-release-$(VERSION).tar.gz .
	@rm -f /tmp/fedora-release-$(VERSION).tar.gz
	@echo ""
	@echo "The final archive is in fedora-release-$(VERSION).tar.gz"

archive: tag-archive create-archive




More information about the fedora-extras-commits mailing list