From 55b3e912dc0c66c4d7828ea0859e55d79ca07617 Mon Sep 17 00:00:00 2001
From: erwan <erwan.jahier@univ-grenoble-alpes.fr>
Date: Tue, 6 Jul 2021 16:00:53 +0200
Subject: [PATCH] Chore: the lib/generate-version.sh should not need any
 argument

---
 lib/generate-version.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/generate-version.sh b/lib/generate-version.sh
index f8913bd..3b2e5b0 100755
--- a/lib/generate-version.sh
+++ b/lib/generate-version.sh
@@ -3,6 +3,6 @@
 set -e
 
 SHA=$(git log -1 --pretty=format:"%h" || echo "opam")
-VERSION=$(git describe --tags || echo "${1}")
+VERSION=$(git describe --tags || basename `pwd` | cut -d '.' -f2-4)
 echo "let str=\"${VERSION}\"" > lutilsVersion.ml
 echo "let sha=\"${SHA}\"" >> lutilsVersion.ml 
\ No newline at end of file
-- 
GitLab