Skip to content

Commit 7a645b4

Browse files
committed
adjust VSTlib opam config; fix util/make_version to work on MacOS
1 parent a3c11f5 commit 7a645b4

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

lib/_CoqProject

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
-Q proof VSTlib
22
-Q test VSTlibtest
3+
proof/version.v
34
proof/math_extern.v
45
proof/spec_math.v
56
proof/verif_math.v

lib/coq-vst-lib.opam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
opam-version: "2.0"
2-
version: "dev"
2+
version: "2.12"
33
synopsis: "VSTlib: VST-verified C library for VST-verified clients"
44
description: "These program modules, in the form of Verified Software Units,
55
may be linked with client-module code (at the .c/.o level) and proofs (at the .v level)."
66
authors: [
77
"Andrew W. Appel"
88
]
9-
maintainer: "Andrew W. Appel"
9+
maintainer: "Andrew W. Appel <appel@princeton.edu>"
1010
homepage: "http://"
1111
dev-repo: "git+https://github.com/PrincetonUniversity/VST"
1212
bug-reports: "https://github.com/PrincetonUniversity/VST/issues"

lib/proof/version.v

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Require Import ZArith Coq.Strings.String. Open Scope string.
2+
Definition release := "2.12".

util/make_version

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
#usage: util/make_version Bitsize Compcert-version
33
F=veric/version.v
44
set -e
5+
if [ -f `which gdate` ]; then
6+
DATE=gdate
7+
else
8+
DATE=date
9+
fi
510
printf >$F 'Require Import ZArith Coq.Strings.String. Open Scope string.\n'
611
printf >>$F 'Definition git_rev := "'
712
if [ -e "$(command -v git)" ] && [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ]; then
@@ -12,7 +17,7 @@ printf >>$F 'Definition release := "'
1217
tr -d '[:cntrl:]' <VERSION >>$F
1318
printf >>$F '".\n'
1419
printf >>$F 'Definition date := "'
15-
date --rfc-3339=date | tr -d '[:cntrl:]' >>$F
20+
$DATE --rfc-3339=date | tr -d '[:cntrl:]' >>$F
1621
printf >>$F '".\n'
1722
printf >>$F 'Definition bitsize : Z := %d.\n' $1
1823
printf >>$F 'Definition compcert_version := "%s".' $2

0 commit comments

Comments
 (0)