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"
16 url
=http
://caml.inria.fr
/pub
/distrib
/ocaml-4.06
/ocaml-4.06
.1.
tar.xz
18 test -e $xz || dl
$url $xz
21 .
/configure
-prefix $prefix
29 rmudir
=$HOME/x
/rcs
/git
/mupdf
30 if test -d $rmudir ; then
31 ref
="--reference $rmudir"
35 git clone
--recursive $ref git
://git.ghostscript.com
/mupdf.git
37 git checkout
4a7822d6750ecb6e0b63f4357738dc20ecaa58f6
38 git submodule update
--recursive
40 make -C mupdf build
=native
-j4 libs
42 PATH
=$prefix/bin
:$PATH sh .
/build.sh build-strap