Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
buildsupport
Commits
39e4aba4
Commit
39e4aba4
authored
Jun 29, 2017
by
Maxime Perrotin
Browse files
Add commit date to the displayed version number
parent
ab23a8cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
39e4aba4
...
...
@@ -8,8 +8,10 @@ all: build
build
:
ifeq
($(UNAME), Linux)
@
echo
"package Buildsupport_Version is"
>
ada/buildsupport_version.ads.new
@
echo
-n
" Buildsupport_Release : constant String :=
\"
"
>>
ada/buildsupport_version.ads.new
@
echo
-n
" Buildsupport_Release : constant String :=
\n
\"
"
>>
ada/buildsupport_version.ads.new
@
git log
--oneline
|
head
-1
|
cut
-f1
-d
' '
|
tr
-d
'\012'
>>
ada/buildsupport_version.ads.new
@
echo
" ; Commit "
|
tr
-d
'\r\n'
>>
ada/buildsupport_version.ads.new
@
git log |
head
-3
|
tail
-1
|
cut
-f1
-d
"+"
|
tr
-d
'\r\n'
>>
ada/buildsupport_version.ads.new
@
echo
"
\"
;"
>>
ada/buildsupport_version.ads.new
@
echo
-n
"end Buildsupport_Version;"
>>
ada/buildsupport_version.ads.new
@
if
[
!
-f
"ada/buildsupport_version.ads"
]
;
then
\
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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