Debian Codegraph @

texmf-dist/doc/metapost/expressg/n2mps.sh

raw
1 #! /bin/sh
2
3 #####################################################################
4 # Shell script n2mps.sh
5 # Call as: n2mps.sh basename
6 # List each file basename.* in the directory and run the Perl script
7 # to copy each basename.N to basenameN.mps, where N is an integer
8 #
9 # Copyright 2000, Mauro S. Costa and Peter R. Wilson
10 #####################################################################
11
12 basename=${1:?"A file basename is required."}
13 extname=N.mps
14 echo Files $basename.N, where N is a number, will be copied to $basename$extname
15 for file in `ls $basename.*`
16 do
17 n2mpsprl.prl $file
18 done
19
20 ####################### end shell script ###########################
21