Debian Codegraph @

documentation/make_pdf

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #! /bin/sh
2 #
3 # Makefile helper script for the Fast Light Tool Kit (FLTK) documentation.
4 #
5 # Copyright 1998-2020 by Bill Spitzak and others.
6 #
7 # This library is free software. Distribution and use rights are outlined in
8 # the file "COPYING" which should have been included with this file. If this
9 # file is missing or damaged, see the license at:
10 #
11 # https://www.fltk.org/COPYING.php
12 #
13 # Please see the following page on how to report bugs and issues:
14 #
15 # https://www.fltk.org/bugs.php
16 #
17
18 # This script generates latex/refman.pdf after doxygen has been executed.
19 #
20 # Input: run `doxygen Doxybook' (creates files in subdirectory latex)
21 # Output: latex/refman.pdf (if successful)
22 #
23 # Next step: cp -f latex/refman.pdf fltk.pdf (why is this extra step needed ?)
24 #
25 # Working directory: fltk/documentation
26 #
27 # Used in: Makefile and CMakeLists.txt
28
29 ( cd latex
30 pdflatex --interaction=nonstopmode refman.tex
31 makeindex refman.idx
32 pdflatex --interaction=nonstopmode refman.tex
33 latex_count=5
34 while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log \
35 && [ $latex_count -gt 0 ]
36 do
37 echo "Rerunning pdflatex ..."
38 pdflatex --interaction=nonstopmode refman.tex
39 latex_count=`expr $latex_count - 1`
40 done
41 cd ..) > pdfall.log 2>&1