Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
verimag
synchrone
lutin
Commits
a0dc3b0c
Commit
a0dc3b0c
authored
Sep 22, 2021
by
erwan
Browse files
build: fix the version.ml generated via opam
parent
129ce3c1
Pipeline
#75712
passed with stages
in 5 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/lutin/generate-version.sh
View file @
a0dc3b0c
...
@@ -3,6 +3,6 @@
...
@@ -3,6 +3,6 @@
set
-e
set
-e
SHA
=
$(
git log
-1
--pretty
=
format:
"%h"
||
echo
"opam"
)
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
lutin
|
cut
-d
'.'
-f2-4
)
echo
"let str=
\"
${
VERSION
}
\"
"
>
version.ml
echo
"let str=
\"
${
VERSION
}
\"
"
>
version.ml
echo
"let sha=
\"
${
SHA
}
\"
"
>>
version.ml
echo
"let sha=
\"
${
SHA
}
\"
"
>>
version.ml
\ No newline at end of file
Write
Preview
Supports
Markdown
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