Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Apr 2021 16:08:42 -0500
From:      Antonio Olivares <olivares14031@gmail.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   script problem
Message-ID:  <CAJ5UdcOfTc3PCySb81JiVgB2WV7jZqn4CueM8tAfeFz51S2f1g@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ5UdcOfTc3PCySb81JiVgB2WV7jZqn4CueM8tAfeFz51S2f1g>