script problem

Antonio Olivares olivares14031 at gmail.com
Wed Apr 21 21:08:56 UTC 2021


Dear kind FreeBSD folks,

I have downloaded the source code for a mathematics book, Vector Calculus
http://www.mecmath.net/


It has a script called cal3book.sh

I have made changes from #!/bin/bash to #!/bin/sh and added some code
so that the files m3Dplain.mp and m3Dsty01.mp are skipped from being
metaposted.  These files are not in texlive2021 for some reason or
another and I do not know how to add them as easily if I were using
miktex install on the fly option.

Script is as follows:
.................................................................................................
#!/bin/sh
if [ $# -eq 0 ] && [ != m3Dplain.mp ] && [ != m3Dsty01.mp ]; then
   for x in *.mp
   do # if [ $# -eq 0 ] export TEX=latex
      TEX=latex
      mpost $x
   done
fi
latex -interaction=nonstopmode calc3book.tex
makeindex -s myindex.ist -o calc3book.ind calc3book.idx
latex -interaction=nonstopmode calc3book.tex
makeindex calc3book.nlo -s nomencl.ist -o calc3book.nls
bibtex calc3book
latex -interaction=nonstopmode calc3book.tex
latex -interaction=nonstopmode calc3book.tex
dvips -j0 -t letter -Pps -G0 -z calc3book.dvi -o
ps2pdf14 -dALLOWPSTRANSPARENCY -dMaxSubsetPct=100 -dSubsetFonts=true
-dEmbedAllFonts=true -dPDFSETTINGS=/printer calc3book.ps
................................................................................

How can I skip from those files being metaposted?  The scripted worked
in FreeBSD 12 to FreeBSD 12.2-RELEASE but not in FreeBSD 13.

Thank you in advance,


Antonio


More information about the freebsd-questions mailing list