[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: loginfo %s question
From: |
Jerry Nairn |
Subject: |
RE: loginfo %s question |
Date: |
Tue, 20 Nov 2001 15:01:46 -0800 |
> From: Jerry Nairn [mailto:address@hidden
> Sent: Tuesday, November 20, 2001 1:42 PM
> Maybe directory names with spaces were still a problem. It
> seems to me they
> would be. I don't remember a solution to that problem.
As it turns out, everything represented by %(Vsv) on the loginfo command
line is one argument, including the repository directory name at the start.
So as long as you don't have directory names of the form:
"1.0.6.0,jlkjl sfd,1.2.3"
you should be all right.
I'll send my copy of the scripts.
Jerry
#After parsing out everything else, the last thin on the line is
#the repository directory and the file list. set $filelist to this
# The way I did this, directories cannot have commas in them.
# This is an artificial limitation. It could be parsed better.
undef $special;
if ($filelist =~ s/^([^\,]+)\s\-\s(New director.*|Imported sources)/$2/) {
$repodir = $1;
$special = $filelist;
} else {
$filelist =~ s/^([^\,]+)\s(([0-9]+\.[0-9\.]*|NONE)\,.*)$/$2/;
$repodir = $1;
}
if ($special) {
....
}
while ($filelist) {
$filelist =~
s/^\s?([0-9]+\.[0-9\.]*|NONE)\,([^\,]+)\,([0-9]+\.[0-9\.]*|NONE)(\s.*)?
$/$4/;
$filename = $2;
$versions{$filename} = [$1, $3];
....
}