Commit b4f2666e authored by erwan's avatar erwan

Fix: the ci was broken by untracking the lutin/src/version.ml file

Indeed, the Makefile.version that generates was depending on the
LURETTE_PATH env var which is not defined in a fresh docker.
parent f268b73c
Pipeline #26495 passed with stages
in 9 minutes and 33 seconds
......@@ -2,19 +2,13 @@
# if it is not a git version, it has to be an opam version!
SHA:=$(shell git log -1 --pretty=format:"%h" || echo "opam")
BRANCH:=$(shell git branch | grep "*" | cut -d ' ' -f 2 || basename `pwd` | echo "opam")
BRANCH:=$(shell git branch | grep "*" | cut -d ' ' -f 2 || echo "opam")
VERSION=$(shell git describe --tags || basename `pwd` | cut -d '.' -f2-4)
echover:
echo "VERSION=$(VERSION)"
echo "PRE_VERSION=$(PRE_VERSION)"
lutin/src/version.ml:
cd $(LURETTE_PATH) ; \
echo "let str=\"$(VERSION)\"" > lutin/src/version.ml ; \
echo "let sha=\"$(SHA)\"" >> lutin/src/version.ml ; \
rm -f version.tex ; \
date +VERSION_DATE=%d-%m-%y > version.tex ; \
echo "\\\newcommand{\\\version}{$(VERSION)}" > doc/version.tex ; \
echo "\\\newcommand{\\\sha}{$(SHA)}" >> doc/version.tex ; \
echo "\\\newcommand{\\\versionname}{Trilby}" >> doc/version.tex ; \
......
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