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