Bug 157894 createlegaldirs.pl fails if All entry for modules file is too long

patch by david.berry@3glab.com r=timeless
This commit is contained in:
timeless%mozdev.org 2005-12-11 04:04:50 +00:00
parent a0be7dadfb
commit bc0c87a480

View File

@ -47,6 +47,12 @@ sub init_modules {
chop;
if (/^\s+/) {
# Replace any leading whitespace with a single space before
# appending to curline. This is necessary for long All lines
# which get split over reads from the CVSCOMMAND.
# The match of oldlist and newlist in find_dirs will fail
# if this is not done.
s/^\s+/ /;
$curline .= $_;
} else {
add_module($curline) if ($curline);