summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/runmpp
blob: 63b7d9cab5609328c3b06fb7cbf237e6f4523451 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash 
#
# $Id: runmpp,v 1.5 2006/01/21 18:14:46 frank Exp $
#
#et -x

if test $? = 1
then 
 echo "WRONG number of args!"
 exit 1
fi

F=`basename $1 .mpp`

if test -r $F.eps
then
 echo $F.eps already made
else
 mpp $F.mpp
 sed -e "/thetitle{$F.mpp}/d" \
     -e "/\\CommonTitleDefs/d" \
     -e "/\\OneInstrumentDef/d" \
     -e "/thetitle/,/bigskip/d" $F.tex > music.tex
 cp music.tex $F.tex
 rm -f $F.mx[12]
 tex "\\nonstopmode\\input $F"
 musixflx $F
 tex "\\nonstopmode\\input $F"
 dvips -Ptlgc2 -j0 -E -Ppp -D600 $F -o $F.eps
#       ^ font subsetting
 ./cleaneps $F.eps
 rm -f $F.mx[12] $F.log $F.tex $F.dvi 
fi