example.com -> example.org
[Seppo.git] / chkr / gen_version.sh
blobf2209245c1ee95422e7207ac74592c3efe13ca7b
1 #!/bin/sh
2 set -e
4 [ "$1" = "" ] && {
5 echo "I need the dune-project version as arg" 1>&2
6 exit 1
8 [ "$GIT_SHA" = "" ] && GIT_SHA="$(git log -1 --format="%h")"
10 cat <<EOF
11 (* generated by $0 *)
12 let dune_project_version = "$1"
13 let git_sha = "$GIT_SHA"
14 EOF