mirror of https://github.com/tLDP/LDP
updated
This commit is contained in:
parent
e2bf190374
commit
fecc14608b
|
@ -39,7 +39,7 @@ my($dcl) = '';
|
|||
my($linuxdoc) = 1;
|
||||
my($create_index) = 0;
|
||||
my($html_only) = 0;
|
||||
my($cmd, $fname, $fname_wo_ext, $txt_filter, $style, $s, $db_v, $x) = '';
|
||||
my($cmd, $fname, $fname_wo_ext, $txt_filter, $style, $db_style, $s, $db_v, $x) = '';
|
||||
my(@flines) = ();
|
||||
|
||||
while(1) {
|
||||
|
@ -55,7 +55,7 @@ while(1) {
|
|||
} elsif ($ARGV[0] eq "-mk_index") {
|
||||
shift(@ARGV);
|
||||
$create_index = 1;
|
||||
} elsif ($ARGV[0] eq "-html_only") {
|
||||
} elsif ($ARGV[0] =~ /^\-html/) {
|
||||
shift(@ARGV);
|
||||
$html_only = 1;
|
||||
} else {
|
||||
|
@ -82,6 +82,7 @@ if( !(-e "$fname") ) {
|
|||
if( $style eq '' ) {
|
||||
$style = "$_toolroot/dsssl/docbook/html/ldp.dsl#html";
|
||||
}
|
||||
$db_style = "$_toolroot/dsssl/docbook/html/docbook.dsl";
|
||||
|
||||
|
||||
# determine DTD
|
||||
|
@ -159,7 +160,7 @@ if( $linuxdoc == 0 && $create_index == 1 ) {
|
|||
$cmd =
|
||||
"$_toolroot/mkindex/collateindex.pl -N -o index." .
|
||||
($dtd eq 'XML' ? "xml;" : "sgml;") .
|
||||
"jade -t sgml -V html-index -d $style $dcl $fname; " .
|
||||
"jade -t sgml -V html-index -d $db_style $dcl $fname; " .
|
||||
"$_toolroot/mkindex/collateindex.pl -g -t Index -i doc-index " .
|
||||
"-o index." . ($dtd eq 'XML' ? "xml" : "sgml") . " HTML.index;" .
|
||||
"rm -f HTML.index";
|
||||
|
@ -167,7 +168,6 @@ if( $linuxdoc == 0 && $create_index == 1 ) {
|
|||
system($cmd);
|
||||
}
|
||||
|
||||
|
||||
# create HTML version
|
||||
#
|
||||
print "\nldp_mk: creating HTML from $fname...\n";
|
||||
|
|
Loading…
Reference in New Issue