#! /bin/sh # Include the git hash in an OCaml file. revision=$(git rev-parse --short HEAD) compile_date=$(date +%Y/%m/%d) echo "let revision = \"${revision} - compiled on ${compile_date}\""