summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/runabcpl
blob: 851ee48bb5ead272efc42ccfac130e9408688ae1 (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
35
36
#!/bin/bash 
#
# $Id: runabcpl,v 1.4 2005/11/28 22:58:34 rahtz Exp $
#
#et -x

export TEXINPUTS=inputs:

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

F=`basename $1 .abcplus`


if test -r $F.eps
then
  echo $F.eps already made
else
  abcm2ps -O $F.ps $F.abcplus
  ps2epsi $F.ps $F.eps




  if test ! -s $F.eps
  then
    rm $F.eps
    echo "*************************** eps file $F.eps has zero size"
    exit 1
  fi
  rm -f $F.ps
fi