summaryrefslogtreecommitdiff
path: root/combine.sh
blob: 20f42183e04171f3829e751038f23f43e3fdc2b5 (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
#! /bin/sh

#imgnum=9999
imgnum=1000

for n in `ls $1*.fig`; do

    echo $n
    fig2dev -L png -Z$2 $n $1-$imgnum.png

    #imgnum=`expr $imgnum - 1`
    imgnum=`expr $imgnum + 1`

done

ls $1-*.png
printf "Remove the .fig sample files (y/N)?"
read rmfigs

if [ "$rmfigs" = "y" ]; then
    rm -f $1*.fig
fi

#imgnum=`expr $imgnum + 1`
imgnum=1000

gimp $1-$imgnum.png

ls $1*gif
printf "Remove the .png sample files (y/N)?"
read rmfigs

if [ "$rmfigs" = "y" ]; then
    rm -f $1*.png
fi