comparison makeBooke.sh @ 37:72b5d67756e1

Fix up troubles with \. echo -E disables expansion.
author Jim Hague <jim.hague@laicatc.com>
date Sat, 03 Mar 2012 12:00:35 +0000
parents 80af9457d566
children 01c4d873153f
comparison
equal deleted inserted replaced
36:98fe55433833 37:72b5d67756e1
1 #!/bin/sh 1 #!/bin/bash
2 # 2 #
3 # Build the Booke. First assemble the book LaTeX, then build it 3 # Build the Booke. First assemble the book LaTeX, then build it
4 # into a PDF. 4 # into a PDF.
5 # 5 #
6 6
31 do 31 do
32 title=`grep "^T:" $filename | head -1 | sed -e "s/^T: *//"` 32 title=`grep "^T:" $filename | head -1 | sed -e "s/^T: *//"`
33 name=`basename $filename .abc` 33 name=`basename $filename .abc`
34 abcm2ps -j0 +c -n -E -O $builddir/$name.eps $filename 34 abcm2ps -j0 +c -n -E -O $builddir/$name.eps $filename
35 epstopdf --outfile=$builddir/$name.pdf $builddir/${name}001.eps 35 epstopdf --outfile=$builddir/$name.pdf $builddir/${name}001.eps
36 echo "\\\\begin{center}" >> $builddir/$output 36 echo -E "\begin{center}" >> $builddir/$output
37 echo "\\\\includegraphics[width=\\\\textwidth]{$name}" >> $builddir/$output 37 echo -E "\includegraphics[width=\textwidth]{$name}" >> $builddir/$output
38 echo "\\\\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output 38 echo -E "\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output
39 echo "\\\\end{center}" >> $builddir/$output 39 echo -E "\end{center}" >> $builddir/$output
40 done 40 done
41 41
42 cat dottes.tex.footer >> $builddir/$output 42 cat dottes.tex.footer >> $builddir/$output
43 43
44 cd $builddir 44 cd $builddir