Remove doc generation.
This commit is contained in:
parent
578131609b
commit
887425fccb
124
asio/boostify.pl
124
asio/boostify.pl
@ -589,132 +589,8 @@ sub copy_examples
|
||||
}
|
||||
}
|
||||
|
||||
sub copy_docs
|
||||
{
|
||||
my @dirs = (
|
||||
"src/doc/boost",
|
||||
"src/doc/concepts",
|
||||
"src/doc/design");
|
||||
|
||||
our $boost_dir;
|
||||
foreach my $dir (@dirs)
|
||||
{
|
||||
my @files = (
|
||||
glob("$dir/*.*pp"),
|
||||
glob("$dir/*.dox"),
|
||||
glob("$dir/*.dot"),
|
||||
glob("$dir/*.htm"),
|
||||
glob("$dir/*.txt"));
|
||||
foreach my $file (@files)
|
||||
{
|
||||
my $from = $file;
|
||||
my $to = $file;
|
||||
if ($to =~ /src\/doc\/boost\/.*\.qbk/)
|
||||
{
|
||||
$to =~ s/^src\/doc\/boost\//$boost_dir\/libs\/asio\/doc\//;
|
||||
}
|
||||
elsif ($to =~ /src\/doc\/boost\/.*\.v2/)
|
||||
{
|
||||
$to =~ s/^src\/doc\/boost\//$boost_dir\/libs\/asio\/doc\//;
|
||||
}
|
||||
elsif ($to =~ /src\/doc\/boost/)
|
||||
{
|
||||
$to =~ s/^src\/doc\/boost\//$boost_dir\/libs\/asio\/doc\/doxygen\//;
|
||||
}
|
||||
elsif ($to =~ /src\/doc\/design/)
|
||||
{
|
||||
$to =~ s/^src\/doc\/design\//$boost_dir\/libs\/asio\/doc\/doxygen\/design\//;
|
||||
}
|
||||
else
|
||||
{
|
||||
$to =~ s/^src\/doc\//$boost_dir\/libs\/asio\/doc\//;
|
||||
}
|
||||
copy_source_file($from, $to);
|
||||
}
|
||||
}
|
||||
|
||||
copy_source_file("src/doc/boost/index.html",
|
||||
"$boost_dir/libs/asio/doc/index.html");
|
||||
copy_source_file("src/doc/boost/asio.css",
|
||||
"$boost_dir/libs/asio/doc/asio.css");
|
||||
copy_source_file("src/doc/boost/asio.css",
|
||||
"$boost_dir/libs/asio/doc/design/asio.css");
|
||||
copy_source_file("src/doc/boost/asio.css",
|
||||
"$boost_dir/libs/asio/doc/doxygen/asio.css");
|
||||
copy_source_file("src/doc/boost/asio.css",
|
||||
"$boost_dir/libs/asio/doc/examples/asio.css");
|
||||
copy_source_file("src/doc/boost/asio.css",
|
||||
"$boost_dir/libs/asio/doc/reference/asio.css");
|
||||
copy_source_file("src/doc/boost/asio.css",
|
||||
"$boost_dir/libs/asio/doc/tutorial/asio.css");
|
||||
copy_source_file("src/doc/external.doxytags",
|
||||
"$boost_dir/libs/asio/doc/doxygen/external.doxytags");
|
||||
}
|
||||
|
||||
sub create_root_html
|
||||
{
|
||||
our $boost_dir;
|
||||
open(my $output, ">$boost_dir/libs/asio/index.html")
|
||||
or die("Can't open $boost_dir/libs/asio/index.html for writing");
|
||||
print($output "<html>\n");
|
||||
print($output "<head>\n");
|
||||
print($output "<meta http-equiv=\"refresh\"");
|
||||
print($output " content=\"0; URL=doc/html/index.html\">\n");
|
||||
print($output "</head>\n");
|
||||
print($output "<body>\n");
|
||||
print($output "Automatic redirection failed, please go to\n");
|
||||
print($output "<a href=\"doc/html/index.html\">doc/html/index.html</a>\n");
|
||||
print($output "</body>\n");
|
||||
print($output "</html>\n");
|
||||
close($output);
|
||||
}
|
||||
|
||||
sub create_doc_html
|
||||
{
|
||||
our $boost_dir;
|
||||
mkdir("$boost_dir/libs/asio/doc");
|
||||
open(my $output, ">$boost_dir/libs/asio/doc/index.html")
|
||||
or die("Can't open $boost_dir/libs/asio/doc/index.html for writing");
|
||||
print($output "<html>\n");
|
||||
print($output "<head>\n");
|
||||
print($output "<meta http-equiv=\"refresh\"");
|
||||
print($output " content=\"0; URL=html/index.html\">\n");
|
||||
print($output "</head>\n");
|
||||
print($output "<body>\n");
|
||||
print($output "Automatic redirection failed, please go to\n");
|
||||
print($output "<a href=\"html/index.html\">html/index.html</a>\n");
|
||||
print($output "</body>\n");
|
||||
print($output "</html>\n");
|
||||
close($output);
|
||||
}
|
||||
|
||||
sub execute_doxygen
|
||||
{
|
||||
our $boost_dir;
|
||||
chdir("$boost_dir/libs/asio/doc/doxygen");
|
||||
system("doxygen reference.dox");
|
||||
system("doxygen design.dox");
|
||||
system("doxygen examples.dox");
|
||||
system("doxygen tutorial.dox");
|
||||
unlink("asio.doxytags");
|
||||
unlink("design.doxytags");
|
||||
chdir("..");
|
||||
my @rm_files = (
|
||||
glob("*/*.map"),
|
||||
glob("*/*.md5"),
|
||||
glob("*/doxygen.png"));
|
||||
foreach my $rm_file (@rm_files)
|
||||
{
|
||||
unlink($rm_file);
|
||||
}
|
||||
}
|
||||
|
||||
determine_boost_dir();
|
||||
copy_include_files();
|
||||
create_lib_directory();
|
||||
copy_unit_tests();
|
||||
copy_examples();
|
||||
copy_docs();
|
||||
create_root_html();
|
||||
#create_doc_html();
|
||||
#execute_doxygen();
|
||||
|
Loading…
Reference in New Issue
Block a user