git_head.sh 194 B

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