4 executable_p
() { command -v "$1" >/dev
/null
2>&1; }
5 die
() { echo "$1" >&2; exit 1; }
7 if executable_p wget
; then dl
() { wget
-q $1 -O $2; }
8 elif executable_p curl
; then dl
() { curl
$1 -o $2; }
9 else die
"no program to fetch remote urls found"
17 url
=http
://caml.inria.fr
/pub
/distrib
/ocaml-4.06
/ocaml-4.06
.1.
tar.xz
19 test -e $xz || dl
$url $xz
22 .
/configure
-prefix $prefix
30 rmudir
=$HOME/x
/rcs
/git
/mupdf
31 if test -d $rmudir ; then
32 ref
="--reference $rmudir"
36 git clone
--recursive $ref git
://git.ghostscript.com
/mupdf.git
38 git checkout
4a7822d6750ecb6e0b63f4357738dc20ecaa58f6
39 git submodule update
--recursive
41 make -C mupdf build
=native
-j4 libs
43 PATH
=$prefix/bin
:$PATH sh .
/build.sh build-strap