]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Better output.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 20 Dec 1999 13:48:14 +0000 (13:48 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 20 Dec 1999 13:48:14 +0000 (13:48 +0000)
git-svn-id: https://svn.dealii.org/trunk@2086 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/tutorial/chapter-2.step-by-step/Makefile
deal.II/doc/tutorial/chapter-2.step-by-step/program2plain
deal.II/doc/tutorial/chapter-2.step-by-step/step-by-step.header

index 3f21b53864b4f9535fb8733c8683adebebf31aad..05ed596c2acff7492d00dd8a189cd65fbd248024 100644 (file)
@@ -19,8 +19,11 @@ $(example-htmls):
          | $(PERL) program2html \
          >> $@
        @cat $(@:.html=.results) >> $@
-       @cat ../../../deal.II/examples/step-by-step/$(@:.html=)/$(@:.html=.cc) \
+       @cat $D/deal.II/examples/step-by-step/$(@:.html=)/$(@:.html=.cc) \
          | $(PERL) program2plain \
+         | $(PERL) -e '$$path="$D/deal.II/examples/step-by-step/$(@:.html=)/$(@:.html=.cc)"; \
+                        $$path =~ s!/! /!g; \
+                       while (<>) { s!PROGRAMPATH!$$path!g; print; };' \
          >> $@
        @cat step-by-step.foot >> $@
 
index 88c91c31dff8d79947f4cb535d5ded4e3b1ecedc..b55c9f922b7a2bdb44fefe5eb4df18494b7a43ee 100644 (file)
@@ -5,7 +5,10 @@ while ( m!/\*\s*\$Id$!) {
 }
 
 print "<a name=\"PlainProg\"></a>\n";
-print "<h1> The plain program</h1>";
+print "<h1> The plain program</h1>\n";
+
+print "(The program can be found at <i>PROGRAMPATH</i>.)\n <p>\n";
+
 print "<pre><code>";
 
 
index 77c4be38076782981a612e76656de31b8e2a0b0d..1bad32b760e6e3972fb49bf9cbd825290e958a27 100644 (file)
@@ -25,3 +25,4 @@
   <li> <a href="#Results"> Results </a>
   <li> <a href="#PlainProg"> The plain program </a>
 </ol>
+

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.