]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix one bug, and simplify one more command somewhat.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 15 Mar 2006 03:16:33 +0000 (03:16 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 15 Mar 2006 03:16:33 +0000 (03:16 +0000)
git-svn-id: https://svn.dealii.org/trunk@12591 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

index f42149020c0481912e592f6a00253c0a23082ea9..8c2aa2b3ebcd6ca626483817155ecbd0eb85a871 100644 (file)
@@ -40,12 +40,15 @@ $(example-commprogs):
 
 $(example-plainprogs):
        @echo ================== Making $@
-       @cat $D/examples/$(call get_basename, $@)/*.cc \
-         | $(PERL) program2plain \
-         | $(PERL) -e '$$path="$D/examples/$(call get_basename,$@)/*.cc)"; \
-                        $$path =~ s!/! /!g; \
-                       while (<>) { s!PROGRAMPATH!$$path!g; print; };' \
-         > $@
+       @echo "<a name=\"PlainProg\"></a>" > $@
+       @echo "<h1> The plain program</h1>" >> $@
+       @echo "<p>" >> $@
+       @echo "(If you are looking at a locally installed deal.II version, then the" >> $@
+       @echo "program can be found at <i>" >> $@
+       @echo $D/examples/$(call get_basename,$@)/*.cc | $(PERL) -pi -e 's!/! /!g;' >> $@
+       @echo "</i>. Otherwise, this is only" >> $@
+       @echo "the path on some remote server.) </p>" >> $@
+       @cat $D/examples/$(call get_basename, $@)/*.cc | $(PERL) program2plain >> $@
 
 
 $(example-toc-prog):
index 5174b5b35157c4f8a9fb2337d3d312f1fbccb795..380da8b56cb40d3a0a2df96ef9a493a3c28e0a91 100644 (file)
@@ -1,18 +1,7 @@
 # Copyright (C) 1999, 2000, 2001, 2002, 2006 by Wolfgang Bangerth, University of Heidelberg
 
-print <<END;
-<a name=\"PlainProg\"></a>
-<h1> The plain program</h1>
-
-<p>
-(If you are looking at a locally installed deal.II version, then the
-program can be found at <i>PROGRAMPATH</i>. Otherwise, this is only
-the path on some remote server.) 
-</p>
-
-<p>
-<pre><code>
-END
+print "<p>\n";
+print "<pre><code>\n";
 
 
 while (<>) {

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.