version 1.59, 2012/01/23 12:48:45
|
version 1.61, 2014/06/09 05:14:12
|
Line 1230 sub format_file {
|
Line 1230 sub format_file {
|
my @tokeninfo=@_; |
my @tokeninfo=@_; |
$file=''; $source=''; $target=''; $categoryname=''; $description=''; |
$file=''; $source=''; $target=''; $categoryname=''; $description=''; |
$note=''; $build=''; $status=''; $dependencies=''; $installscript=''; |
$note=''; $build=''; $status=''; $dependencies=''; $installscript=''; |
|
$buildlink = ''; |
my $text=&trim($parser->get_text('/file')); |
my $text=&trim($parser->get_text('/file')); |
my $buildtest; |
my $buildtest; |
$file_count++; |
$file_count++; |
Line 1323 END
|
Line 1324 END
|
} |
} |
return $result; |
return $result; |
} |
} |
my $bflag='-b1'; |
my $bflag='-b5'; |
$bflag='-b3' if $dependencies or $buildlink; |
$bflag='-b3' if ($buildlink); |
|
$bflag='-b6' if (($dependencies) or |
|
($categoryname eq 'pdf manual')); |
if ($tokeninfo[2]{type} eq 'private') { |
if ($tokeninfo[2]{type} eq 'private') { |
return <<END; |
return <<END; |
$buildtest \@if (test -e "${sourceroot}/${source}") && (test -e "${targetroot}/${target}"); then \\ |
$buildtest \@if (test -e "${sourceroot}/${source}") && (test -e "${targetroot}/${target}"); then \\ |
Line 1661 sub format_installscript {
|
Line 1664 sub format_installscript {
|
# -------------------------------------------------------- Format build section |
# -------------------------------------------------------- Format build section |
sub format_buildlink { |
sub format_buildlink { |
my @tokeninfo=@_; |
my @tokeninfo=@_; |
$buildlink=''; |
|
my $text=&trim($parser->get_text('/buildlink')); |
my $text=&trim($parser->get_text('/buildlink')); |
if ($text) { |
if ($text) { |
$parser->get_tag('/buildlink'); |
$parser->get_tag('/buildlink'); |
$buildlink=$sourceroot.'/'.$text; |
$buildlink=$sourceroot.'/'.$text; |
|
} else { |
|
$buildlink=''; |
} |
} |
return ''; |
return ''; |
} |
} |
Line 1683 sub format_status {
|
Line 1687 sub format_status {
|
# ------------------------------------------------- Format dependencies section |
# ------------------------------------------------- Format dependencies section |
sub format_dependencies { |
sub format_dependencies { |
my @tokeninfo=@_; |
my @tokeninfo=@_; |
#$dependencies=''; |
|
my $text=&trim($parser->get_text('/dependencies')); |
my $text=&trim($parser->get_text('/dependencies')); |
if ($text) { |
if ($text) { |
$parser->get_tag('/dependencies'); |
$parser->get_tag('/dependencies'); |
$dependencies=join(';',((map {s/^\s*//;s/\s$//;$_} split(/\;/,$text)),$dependencies)); |
$dependencies=join(';',((map {s/^\s*//;s/\s$//;$_} split(/\;/,$text)),$dependencies)); |
$dependencies=~s/;$//; |
$dependencies=~s/;$//; |
|
} else { |
|
$dependencies=''; |
} |
} |
return ''; |
return ''; |
} |
} |