[go: up one dir, main page]

File: pdf

package info (click to toggle)
docbook-utils 0.6.14-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 724 kB
  • ctags: 37
  • sloc: perl: 1,094; sh: 858; makefile: 117
file content (31 lines) | stat: -rw-r--r-- 805 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Backend to convert something into PDF
# Send any comments to Eric Bischoff <eric@caldera.de>
# This program is under GPL license. See LICENSE file for details.

TEXINPUTS="$(dirname "${SGML_FILE}"):${TEXINPUTS}"
export TEXINPUTS

# Convert to TeX
$SGML_JADE -t tex -o ${SGML_FILE_NAME}.tex $SGML_ARGUMENTS
if [ $? -ne 0 ]
then exit 1
fi

# Convert from TeX to PDF
pdfjadetex ${SGML_FILE_NAME}.tex >${SGML_FILE_NAME}.tmp
if [ $? -ne 0 ]
then
  cat ${SGML_FILE_NAME}.tmp
  rm ${SGML_FILE_NAME}.tmp
  rm ${SGML_FILE_NAME}.tex
  exit 2
fi
rm ${SGML_FILE_NAME}.tmp

# Unconditionally re-run pdfjadetex, twice 
pdfjadetex ${SGML_FILE_NAME}.tex >/dev/null
pdfjadetex ${SGML_FILE_NAME}.tex >/dev/null
rm -f ${SGML_FILE_NAME}.log ${SGML_FILE_NAME}.aux \
      ${SGML_FILE_NAME}.tex ${SGML_FILE_NAME}.out

exit 0