Bump the select timeout
[llpp.git] / tbs
blob30fa14272d0ed61928364423c99422868765e403
1 #!/bin/sh
3 #set -x
4 set -e
6 h=$(readlink -f $(dirname $0))
7 r=$(readlink -f $h/..)
8 t=$r/tbs
9 d=MD5
11 export OCAMLRUNPARAM=b
13 if test $h = $PWD; then
14 mkdir -p build
15 cd build
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
22 mv $d.tmp $d
25 mupdf=/home/malc/x/bld/mupdf
26 mupdf=/home/malc/x/rcs/darcs/mupdf/mupdf/
27 mupdf=/home/malc/x/rcs/svn/sumatrapdf-read-only/mupdf
28 cc=gcc
29 ccopt="-std=c89 -Dinline=__inline__ -Wall -Werror -I$mupdf/fitz -I$mupdf/mupdf"
30 targets="llpp"
32 lpath=$mupdf/build/linux-ppc-release/
33 lpath=$mupdf/build/release
35 ./b -O src:$h -r -O ccopt:"$ccopt" -O cc:"$cc" \
36 -O "mupdflibpath:$lpath" \
37 $* $targets