Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > by-pkgid > fd4e344492ec640d3ae0e5a58e178a65 > files > 1

svn2cl-0.8-2mdv2007.1.src.rpm

--- svn2cl-0.6/README.authors	2006-02-11 16:29:24.000000000 +0100
+++ svn2cl-0.6/README	2006-03-20 13:31:05.000000000 +0100
@@ -49,6 +49,15 @@
 Note: Be sure to keep the svn2cl.xsl file in the same directory as the
 svn2cl.sh script as the script looks for it there (symlinking is ok).
 
+AUTHORS FILES
+=============
+
+svn2cl can read authors file formatted as XML to convert login to full
+names with email address.
+To convert colon-separated files used by cvs2cl, the
+convert_authors.pl perl script can be used (it requires the
+XML::Simple perl module).
+
 NOTES
 =====
 
--- svn2cl-0.6/convert_authors.pl.authors	2006-03-20 13:31:14.000000000 +0100
+++ svn2cl-0.6/convert_authors.pl	2006-03-20 13:28:04.000000000 +0100
@@ -0,0 +1,9 @@
+#!/usr/bin/perl
+
+use XML::Simple;
+
+my @authors;
+while (<>) {
+    /^(.*?):(.*)$/ and push @authors, { uid => $1, content => $2 };
+}
+print XMLout({ author => \@authors }, RootName => "authors");