make CVS dirs work too
This commit is contained in:
parent
db63966873
commit
24c26f957f
1 changed files with 21 additions and 0 deletions
|
|
@ -108,6 +108,27 @@ def svnparse(url)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def cvsparse(url)
|
||||||
|
puts "\n#{url}"
|
||||||
|
begin
|
||||||
|
body = fetch("#{url}/CVS/Entries").body
|
||||||
|
rescue
|
||||||
|
end
|
||||||
|
dirs = Array.new
|
||||||
|
body.each{|line|
|
||||||
|
case line
|
||||||
|
when /^D\/?(.*?)\/.*/ then
|
||||||
|
puts "#{$1}/"
|
||||||
|
dirs.push($1)
|
||||||
|
when /^\/(.*?)\/(.*?)\/(.*?)\/.*/ then
|
||||||
|
puts "#{$1} #{$2} #{$3}"
|
||||||
|
end
|
||||||
|
}
|
||||||
|
dirs.each{|dir|
|
||||||
|
cvsparse("#{url}/#{dir}")
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
options = cmdline
|
options = cmdline
|
||||||
if options["-u"].nil?
|
if options["-u"].nil?
|
||||||
usage
|
usage
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue