6 h
=$
(readlink
-f $
(dirname $0))
11 export OCAMLRUNPARAM
=b
13 if test $h = $PWD; then
18 if ! md5sum --status -c $d; then
19 md5sum $h/build.ml
$h/tbs
$t/tbs.cma
>$d.tmp
20 ocamlc.opt
-o build.cmo
-c -g -I $t $h/build.ml
21 ocamlc.opt
-g -thread -I $t unix.cma threads.cma tbs.cma build.cmo
-o b
25 mupdf
=/home
/malc
/x
/rcs
/svn
/sumatrapdf-read-only
/mupdf
26 mupdf
=/home
/malc
/x
/rcs
/git
/mupdf
28 ccopt
="-std=c89 -Wall -Werror"
29 ccopt
="$ccopt -I$mupdf/fitz -I$mupdf/pdf -I$mupdf/xps -I$mupdf/cbz"
30 ccopt
="$ccopt $(freetype-config --cflags) -include ft2build.h"
32 libs
="-lmupdf -lmuxps -lmucbz -lfitz"
33 libs
="$libs -lopenjpeg -ljbig2dec -ljpeg -lz -lfreetype -lfontconfig -lX11"
34 ccopt
="$ccopt -maltivec -O -D_GNU_SOURCE"
36 lpath
=$mupdf/build
/release
38 .
/b
-O src
:$h -r -O ccopt
:"$ccopt" -O cc
:"$cc" \
39 -O "mupdflibpath:$lpath" \