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:
|
2007-06-19 17:50:17 +00:00
|
|
|
git-tag -a $(CVSTAG)
|
2002-12-04 04:57:53 +00:00
|
|
|
|
|
|
|
create-archive:
|
2007-06-19 17:50:17 +00:00
|
|
|
git-archive --format=tar --prefix=redhat-rpm-config-$(VERSION)/ HEAD | bzip2 -9v > redhat-rpm-config-$(VERSION).tar.bz2
|
|
|
|
@echo "The final archive is in $(NAME)-$(VERSION).tar.bz2"
|
2002-12-04 04:57:53 +00:00
|
|
|
|
|
|
|
archive: tag-archive create-archive
|
2007-06-19 17:50:17 +00:00
|
|
|
dist: create-archive
|