File: make-docs

package info (click to toggle)
apt-dpkg-ref 5
  • links: PTS
  • area: main
  • in suites: sarge, woody
  • size: 48 kB
  • ctags: 6
  • sloc: lisp: 298; makefile: 43; sh: 24
file content (27 lines) | stat: -rwxr-xr-x 577 bytes parent folder | download | duplicates (3)
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
#!/bin/sh

CLISP_BIN=$(which clisp)
LISP_BIN=$(which lisp)

if [ -n "$CLISP_BIN" ]; then
	$CLISP_BIN apt-dpkg-ref.lisp
elif [ -n "$LISP_BIN" ]; then
	$LISP_BIN -load apt-dpkg-ref.lisp
else
	echo "You need a lisp-compiler installed!"
	exit 1;
fi

LATEX_BIN=$(which latex)
PDFLATEX_BIN=$(which pdflatex)
DVIPS_BIN=$(which dvips)

if [ -n "$LATEX_BIN" -a -n "$PDFLATEX_BIN" -a -n "$DVIPS_BIN" ]; then
	latex apt-dpkg-ref.tex
	pdflatex apt-dpkg-ref.tex
	dvips apt-dpkg-ref.dvi -o
else
	echo "You need a LaTeX distribution installed!  Need latex, pdflatex, and dvips."
	exit 1;
fi