]> https://gitweb.dealii.org/ - dealii.git/commitdiff
List for each tutorial what others it depends on. 5846/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 2 Feb 2018 21:00:55 +0000 (14:00 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 2 Feb 2018 21:00:55 +0000 (14:00 -0700)
doc/doxygen/scripts/make_step.pl

index 36907f9e89321c7bdfc55ac04096cda393228d1d..e1269c3c9cc9be077ef1840974fb2b8ecc713baa 100644 (file)
@@ -27,7 +27,26 @@ $cmake_source_dir=$ARGV[1];
 print
 "/**
   * \@page $step_underscore The $step tutorial program
-\@htmlonly
+";
+
+open BF, "$cmake_source_dir/examples/$step/doc/builds-on"
+    or die "Can't open builds-on file $cmake_source_dir/examples/$step/doc/builds-on";
+my $buildson = <BF>;
+close BF;
+chop $buildson;
+
+# At the very top, print which other programs this one builds on. The
+# filter script will replace occurrences of step-XX by the appropriate
+# links.
+if ($buildson ne "")
+{
+    $buildson =~ s/ /, /g;
+    print "This tutorial depends on $buildson.\n\n";
+}
+
+# then show the table of contents
+print
+"\@htmlonly
 <table class=\"tutorial\" width=\"50%\">
 <tr><th colspan=\"2\"><b><small>Table of contents</small></b></th></tr>
 <tr><td width=\"50%\" valign=\"top\">

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.