aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2005-10-06 16:08:24 (GMT)
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2005-10-06 16:08:24 (GMT)
commitbcd69dfe486ba8c07ae4c1468ca7003568df226b (patch)
tree0d2c19460ea218ec7830723c6f4139848ccbf929
parent0c3b06bff4c3ef8f5ec9d6fdba8ce2a6b6035960 (diff)
-rw-r--r--Makefile.am10
1 files 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 \