repo.or.cz
/
Seppo.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
example.com -> example.org
[Seppo.git]
/
chkr
/
gen_version.sh
blob
f2209245c1ee95422e7207ac74592c3efe13ca7b
1
#!/bin/sh
2
set -e
3
4
[
"
$1
"
=
""
] && {
5
echo
"I need the dune-project version as arg"
1
>&
2
6
exit
1
7
}
8
[
"
$GIT_SHA
"
=
""
] &&
GIT_SHA
=
"$(git log -1 --format="
%
h
")"
9
10
cat
<<EOF
11
(* generated by
$0
*)
12
let dune_project_version = "
$1
"
13
let git_sha = "
$GIT_SHA
"
14
EOF