cvs2svn-migration/trunk: config invoke_cvs2svn migrator
saq
cvs at pld-linux.org
Thu Sep 15 23:34:00 CEST 2005
Author: saq
Date: Thu Sep 15 23:33:49 2005
New Revision: 6393
Added:
cvs2svn-migration/trunk/config
Modified:
cvs2svn-migration/trunk/invoke_cvs2svn
cvs2svn-migration/trunk/migrator
Log:
- shared config
Added: cvs2svn-migration/trunk/config
==============================================================================
--- (empty file)
+++ cvs2svn-migration/trunk/config Thu Sep 15 23:33:49 2005
@@ -0,0 +1,21 @@
+# This file is valid in both POSIX sh and Python
+
+# source CVS repo
+cvsdir="/home/users/saq/PLD/repo"
+# target SVN repo
+svndir="/home/users/saq/tmp/svn"
+
+# temporarily reorganized copy
+tmpcvsdir="/home/users/saq/tmp/repo"
+# rpm can't read a spec from stdin
+tmpspecfile="/home/users/saq/tmp/foo.spec"
+# reasons of failures
+logdir="/home/users/saq/tmp/migrator-log"
+
+# only those SPECS/ files will be copied
+spec_re="^c.*"
+#spec_re=".*"
+# only those SOURCES/ files will be considered for SOURCES.old
+# (files for specs are sought among all sources)
+source_re="^cf.*"
+#source_re=".*"
Modified: cvs2svn-migration/trunk/invoke_cvs2svn
==============================================================================
--- cvs2svn-migration/trunk/invoke_cvs2svn (original)
+++ cvs2svn-migration/trunk/invoke_cvs2svn Thu Sep 15 23:33:49 2005
@@ -1,5 +1,7 @@
#!/bin/sh
+. ./config
+
OPTS="--encoding=ISO-8859-2 --fs-type=fsfs"
# Checking for tag/branch mismatches...
@@ -25,4 +27,4 @@
done
# you'll find many others
-exec cvs2svn $OPTS -s /home/users/saq/tmp/svn /home/users/saq/tmp/repo
+exec cvs2svn $OPTS -s "$svndir" "$tmpcvsdir"
Modified: cvs2svn-migration/trunk/migrator
==============================================================================
--- cvs2svn-migration/trunk/migrator (original)
+++ cvs2svn-migration/trunk/migrator Thu Sep 15 23:33:49 2005
@@ -2,33 +2,16 @@
# requires: cvs2svn, rcs, rpm-build
-# source
-cvsdir="/home/users/saq/PLD/repo"
-# target
-tmpcvsdir="/home/users/saq/tmp/repo"
-# rpm can't read a spec from stdin
-tmpspecfile="/home/users/saq/tmp/foo.spec"
-# reasons of failures
-logdir="/home/users/saq/tmp/migrator-log"
-
-# only those SPECS/ files will be copied
-spec_re="^c.*"
-#spec_re=".*"
-# only those SOURCES/ files will be considered for SOURCES.old
-# (files for specs are sought among all sources)
-source_re="^c.*"
-#source_re=".*"
-
-# rlog: .../kernel/Attic/linux-2.4.18-xfs-19062002.patch.gz,v:1244: unexpected end of file
-files_ignore=set(["linux-2.4.18-xfs-19062002.patch.gz,v"])
-
-# internals follow
-
import cvs2svn_rcsparse
import os
import re
from subprocess import Popen,PIPE
+exec file("config").read() in locals()
+
+# rlog: .../kernel/Attic/linux-2.4.18-xfs-19062002.patch.gz,v:1244: unexpected end of file
+files_ignore=set(["linux-2.4.18-xfs-19062002.patch.gz,v"])
+
spec_re=re.compile(spec_re)
source_re=re.compile(source_re)
More information about the pld-cvs-commit
mailing list