Commit a5980bac authored by erwan's avatar erwan
Browse files

build: fix the version number when build via opam

parent d10c190c
Pipeline #75688 passed with stages
in 5 minutes and 28 seconds
......@@ -3,7 +3,7 @@
set -e
SHA=$(git log -1 --pretty=format:"%h" || echo "opam")
VERSION=$(git describe --tags || basename `pwd` | cut -d '.' -f2-4)
VERSION=$(git describe --tags || ls ../../../../ | grep lustre-v6 | cut -d '.' -f2-4)
BRANCH=$(git branch | grep "*" | cut -d ' ' -f 2 || basename `pwd` | echo "opam")
echo "(** Automatically generated from lib/generate-version.sh *) " > lv6version.ml
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment