Skip to content

Commit

Permalink
Change version of menhir to $(date)
Browse files Browse the repository at this point in the history
- small sed command in ci-menhir.sh to change the version from
  "unreleased" to today's date
- also a small command to generate the a version constant in
  menhirlib/Version.v
  • Loading branch information
Villetaneuse committed Nov 12, 2023
1 parent dece8f2 commit 839c7e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dev/ci/ci-menhir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ git_download menhirlib
if [ "$DOWNLOAD_ONLY" ]; then exit 0; fi

( cd "${CI_BUILD_DIR}/menhirlib"
sed -i.bak "s/unreleased/$(date +%Y%m%d)/" dune-project
echo "Definition require_$(date +%Y%m%d) := tt." > coq-menhirlib/src/Version.v
dune build @install -p menhirLib,menhirSdk,menhir
dune install -p menhirLib,menhirSdk,menhir menhir menhirSdk menhirLib --prefix="$CI_INSTALL_DIR"

Expand Down

0 comments on commit 839c7e7

Please sign in to comment.