vironment variable (if you do). See the --help output for more details. For information about obtaining TeX, please see http://tug.org/texlive, or do a web search for TeX and your operating system or distro. EOM exit 1 fi # We want to use etex (or pdftex) if they are available, and the user # didn't explicitly specify. We don't check for elatex and pdfelatex # because (as of 2003), the LaTeX team has asked that new distributions # use etex by default anyway. # if findprog etex; then TEX=etex; else TEX=tex; fi fi # For many years, the pdftex binary has included the e-tex extensions, # but for those people with ancient TeX distributions ... if test -z "$PDFTEX"; then if findprog pdfetex; then PDFTEX=pdfetex; else PDFTEX=pdftex; fi fi # File descriptor usage: # 0 standard input # 1 standard output (--verbose messages) # 2 standard error # 5 tools output (turned off by --quiet) # 6 tracing/debugging (set -x output, etc.) # Main tools' output (TeX, etc.) that TeX users are used to seeing. # # If quiet, discard, else redirect to the message flow. if $quiet; then exec 5>/dev/null else exec 5>&1 fi # Enable tracing, and auxiliary tools output. # # This fd should be used where you'd typically use /dev/null to throw # output away. But sometimes it is convenient to see that output (e.g., # from a grep) to aid debugging. Especially debugging at distance, via # the user. # if $debug; then exec 6>&1 set -vx else exec 6>/dev/null fi #