redhat-rpm-config/Makefile

25 lines
688 B
Makefile
Raw Normal View History

2002-12-04 04:57:53 +00:00
NAME=redhat-rpm-config
VERSION=$(shell awk '/Version:/ { print $$2 }' $(NAME).spec)
CVSROOT = $(shell cat CVS/Root 2>/dev/null || :)
CVSTAG = REDHAT_RPM_CONFIG_$(subst .,_,$(VERSION))
all:
tag-archive:
2003-07-15 13:44:02 +00:00
cvs -Q tag -F $(CVSTAG)
2002-12-04 04:57:53 +00:00
create-archive:
@rm -rf /tmp/$(NAME)
@cd /tmp ; cvs -Q -d $(CVSROOT) export -r$(CVSTAG) $(NAME) || echo "Um... export aborted."
@mv /tmp/$(NAME) /tmp/$(NAME)-$(VERSION)
@cd /tmp ; tar -czSpf $(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION)
@rm -rf /tmp/$(NAME)-$(VERSION)
@cp /tmp/$(NAME)-$(VERSION).tar.gz .
@rm -f /tmp/$(NAME)-$(VERSION).tar.gz
@echo ""
@echo "The final archive is in $(NAME)-$(VERSION).tar.gz"
archive: tag-archive create-archive