Source

ocaml-core / base / compare / preprocess.sh

1
2
3
4
5
6
7
8
#!/usr/bin/env bash
set -e -u
[[ "$#" != 1 ]] && { echo "usage: $0  FILE_TO_PREPROCESS" >&2; exit 1; }
[[ -f "$(hg root)/lib/pa_compare.cmo" ]] || {
   echo "pa_compare.cmo needs to be built for this script to run" >&2;
   exit 1
}
"$(jomake --ocaml-path)/bin/camlp4o" -printer 'Camlp4OCamlPrinter' -I "$(hg root)/lib" pa_type_conv.cmo pa_compare.cmo $1