aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Crozat <fcrozat@mandriva.com>2007-02-12 15:18:41 +0000
committerFrederic Crozat <fcrozat@mandriva.com>2007-02-12 15:18:41 +0000
commitbc5c2d480b3eadc03eb81ed903e3bdc1ec7af508 (patch)
treecbf28380fef5e876f96500ca00e2fa5caba5b9cb
parentb7f35612aaf4b3345dd6124c863fa4066d79eeac (diff)
downloadcommon-data-bc5c2d480b3eadc03eb81ed903e3bdc1ec7af508.tar
common-data-bc5c2d480b3eadc03eb81ed903e3bdc1ec7af508.tar.gz
common-data-bc5c2d480b3eadc03eb81ed903e3bdc1ec7af508.tar.bz2
common-data-bc5c2d480b3eadc03eb81ed903e3bdc1ec7af508.tar.xz
common-data-bc5c2d480b3eadc03eb81ed903e3bdc1ec7af508.zip
Move to SVN
-rw-r--r--Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 23f6405..4449c6f 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,8 @@ VERSION:=$(shell rpm -q --qf '%{VERSION}\n' --specfile $(PACKAGE).spec | head -1
RELEASE:=$(shell rpm -q --qf '%{RELEASE}\n' --specfile $(PACKAGE).spec | head -1| sed -e 's/%mkrel \(.*\)/\1mdk/g')
TAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__')
mandir=/usr/share/man
+SVNROOT = svn+ssh://svn.mandriva.com/svn/soft/$(PACKAGE)
+
clean:
find . -type d -name '.xvpics' -o -name '*~' |xargs rm -rf
@@ -34,17 +36,18 @@ buildrpm:
# rules to build a distributable rpm
-rpm: changelog cvstag dist buildrpm
+rpm: changelog svntag dist buildrpm
dist: cleandist dir export tar
export:
- cvs export -d $(PACKAGE)-$(VERSION) -r $(TAG) $(PACKAGE)
+ svn export $(SVNROOT)/tags/$(TAG) $(PACKAGE)-$(VERSION)
-cvstag:
- cvs tag $(CVSTAGOPT) $(TAG)
+svntag:
+ svn copy $(SVNROOT)/trunk $(SVNROOT)/tags/$(TAG) -m "$(TAG)"
changelog: ../common/username
- cvs2cl -U ../common/username -I ChangeLog
+#svn2cl is available in our contrib.
+ svn2cl --authors ../common/username.xml --accum
rm -f ChangeLog.bak
- cvs commit -m "Generated by cvs2cl the `date '+%d_%b'`" ChangeLog
+ svn commit -m "Generated by svn2cl the `date '+%c'`" ChangeLog