I have a bunch of standalone PSTricks files. Each of those files can be compiled by
latex-dvips-ps2pdf-pdfcrop-pdftops to produce a PDF image. I have made a batch file to do
In my main input file, I will iterate through the PSTricks files.
For each iteration, I check whether or not the corresponding PDF exists. If the corresponding PDF already exists, I check whether or not its time stamp is newer than that of its
.tex file. Otherwise I will invoke
\immediate\write18 mybatch.bat filename.tex to produce or re-produce the corresponding PDF file.
Can (La)TeX compare the time stamps of two external files? Providing the complete working source code for my scenario above is preferred. :-)
Note: Actually I can make an external script to iterate through the PSTricks files and invoke this script only once from within the main input file. But I am interested in creating the hybrid solution.