From bcd69dfe486ba8c07ae4c1468ca7003568df226b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwenol=C3=A9=20Beauchesne?= Date: Thu, 6 Oct 2005 16:08:24 +0000 Subject: cvstag facility --- Makefile.am | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index f6da878..4dcfbbd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,5 +1,9 @@ # $Id$ +VERSION := $(shell rpm -q --qf "%{VERSION}\n" --specfile $(PACKAGE).spec | tail -1) +RELEASE := $(shell rpm -q --qf "%{RELEASE}\n" --specfile $(PACKAGE).spec | tail -1) +TAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__') + macrosfiles = $(RPMALLARCH:=.macros) pkg_data = \ @@ -73,7 +77,7 @@ install-data-local: $(macrosfiles) $(mkinstalldirs) $(DESTDIR)$(RPMVENDORDIR)/$${i}-$(RPMOS); \ $(install_sh_DATA) $${i}.macros $(DESTDIR)$(RPMVENDORDIR)/$${i}-$(RPMOS)/macros; \ done - + .PHONY: rpm rpm: dist dist-bzip2 gzip -dc $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz | bzip2 > $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.bz2 @@ -83,7 +87,9 @@ rpm: dist dist-bzip2 ChangeLog: cvs2cl -W 400 -I ChangeLog --accum -U ../common/username rm -f *.bak - + +cvstag: + cvs tag $(CVSTAGOPT) $(TAG) CLEANFILES = $(pkg_gdata) $(pkg_gscripts) $(macrosfiles) \ macros-perarch \ -- cgit v1.2.1