From: wolf Date: Mon, 15 Apr 2002 10:21:24 +0000 (+0000) Subject: Generate the TOC in a more reasonable and sophisticated way. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67a09220ad9eeb5624c66fcee12b3e0a99d6785e;p=dealii-svn.git Generate the TOC in a more reasonable and sophisticated way. git-svn-id: https://svn.dealii.org/trunk@5653 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/doc/tutorial/chapter-2.step-by-step/Makefile b/deal.II/doc/tutorial/chapter-2.step-by-step/Makefile index 4d386c386f..3a357bf9af 100644 --- a/deal.II/doc/tutorial/chapter-2.step-by-step/Makefile +++ b/deal.II/doc/tutorial/chapter-2.step-by-step/Makefile @@ -15,9 +15,7 @@ all: $(example-htmls) $(example-htmls): @echo ================== Assembling $@ @TOC=`cat $D/examples/$(@:.html=)/$(@:.html=.cc) \ - | grep "@sect" \ - | perl -pi -e 's/.*\{(.*)\}.*/\1/; $$n=$$1; $$nn=$$1; \ - $$nn=~s/\s/_/g; $$_="
  • $$n
  • \n";' \ + | perl program2toc \ | perl -pi -e 's/\"/\\\"/g;'` ; \ cat head.html \ | perl -pi -e '$$step="$@"; \ diff --git a/deal.II/doc/tutorial/chapter-2.step-by-step/head.html b/deal.II/doc/tutorial/chapter-2.step-by-step/head.html index 6e5cab2015..9d958c364a 100644 --- a/deal.II/doc/tutorial/chapter-2.step-by-step/head.html +++ b/deal.II/doc/tutorial/chapter-2.step-by-step/head.html @@ -21,9 +21,7 @@
    1. Introduction
    2. The commented program -
        - TOC -
      +TOC
    3. Results
    4. The plain program
    diff --git a/deal.II/doc/tutorial/chapter-2.step-by-step/program2toc b/deal.II/doc/tutorial/chapter-2.step-by-step/program2toc new file mode 100644 index 0000000000..26b94bd426 --- /dev/null +++ b/deal.II/doc/tutorial/chapter-2.step-by-step/program2toc @@ -0,0 +1,34 @@ +print " \n"; +} +print " \n";