[metapost] mpost: list of all output file names
Dan T. Abell
dabell at bikerider.com
Sun Sep 8 20:31:11 CEST 2013
I do this in a bash script, so ...
epsfiles=`/usr/bin/find . -type f -newer $jobname.mp -name "${jobname}*[0-9]*.eps"`
Of course that may not be sufficiently general for you ....
What sort of program are you writing?
-Dan
On 7 Sep 2013, at 04:22, Peter Zeman wrote:
> Hello.
>
> I'm writing a program, which needs to know the name of each output
> file produced from compiling a MetaPost soucre file.
>
> Is there a way to force 'mpost' to print all output file names and not
> just the name of the first one and the last one?
>
> Another option would be to collect all outputtemplates, create regular
> expression and search the directory, but I would like to avoid this if
> possible.
>
> Is there a way the get the list of all output file names?
>
> Thank you for your answers!
>
> Peter Zeman
> --
> http://tug.org/metapost/
More information about the metapost
mailing list