qubes-installer-qubes-os/qubes-release-1/Makefile
Tomasz Sterna 76f26ecc3d Initial import of qubes-release package.
Qubes release package is based on Fedora 13 generic-release package.
2011-01-11 14:34:00 -05:00

24 lines
715 B
Makefile

VERSION=$(shell awk '/Version/ { print $$2 }' qubes-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) qubes-release || echo "Um... export aborted."
@mv /tmp/qubes-release /tmp/qubes-release-$(VERSION)
@cd /tmp ; tar -czSpf qubes-release-$(VERSION).tar.gz qubes-release-$(VERSION)
@rm -rf /tmp/qubes-release-$(VERSION)
@cp /tmp/qubes-release-$(VERSION).tar.gz .
@rm -f /tmp/qubes-release-$(VERSION).tar.gz
@echo ""
@echo "The final archive is in qubes-release-$(VERSION).tar.gz"
archive: tag-archive create-archive