Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
verimag
synchrone
lustre-v6
Commits
a5980bac
Commit
a5980bac
authored
Sep 22, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/generate-version.sh
View file @
a5980bac
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment