Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
kazoo
Commits
070d2af5
Commit
070d2af5
authored
Jul 15, 2017
by
TASTE User
Browse files
Display proper Ocarina Version
parent
c7895aaa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
070d2af5
...
...
@@ -14,6 +14,10 @@ ifeq ($(UNAME), Linux)
@
echo
" ; Commit "
|
tr
-d
'\r\n'
>>
src/parser_version.ads.new
@
git log |
head
-3
|
tail
-1
|
cut
-f1
-d
"+"
|
tr
-d
'\r\n'
>>
src/parser_version.ads.new
@
echo
"
\"
;"
>>
src/parser_version.ads.new
@
echo
" Ocarina_Version : constant String :="
>>
src/parser_version.ads.new
@
echo
-n
' "'
>>
src/parser_version.ads.new
@
ocarina
--version
|
head
-1
|
tr
-d
'\012'
>>
src/parser_version.ads.new
@
echo
"
\"
;"
>>
src/parser_version.ads.new
@
echo
-n
"end Parser_Version;"
>>
src/parser_version.ads.new
@
if
[
!
-f
"src/parser_version.ads"
]
;
then
\
mv
src/parser_version.ads.new src/parser_version.ads
;
\
...
...
src/parser_utils.adb
View file @
070d2af5
...
...
@@ -5,7 +5,6 @@
with
Ada
.
Text_IO
,
GNAT
.
OS_Lib
,
Parser_Version
,
Ocarina
.
Configuration
,
Ocarina
.
AADL_Values
,
Ocarina
.
Instances
.
Queries
,
Ocarina
.
ME_AADL
.
AADL_Instances
.
Nutils
,
...
...
@@ -35,7 +34,7 @@ package body Parser_Utils is
&
ASCII
.
LF
&
ASCII
.
CR
&
"Contact: Maxime.Perrotin@esa.int or Thanassis.Tsiodras@esa.int"
&
ASCII
.
LF
&
ASCII
.
CR
&
"Based on
Ocarina: "
&
Ocarina
.
Configurat
ion
.
Ocarina_Version
;
&
"Based on
"
&
Parser_Vers
ion
.
Ocarina_Version
;
begin
Put_Line
(
The_Banner
);
end
Banner
;
...
...
src/parser_version.ads
View file @
070d2af5
package
Parser_Version
is
Parser_Release
:
constant
String
:=
"98e23df ; Commit Date: Sat Jul 15 17:46:28 2017 "
;
"c7895aa ; Commit Date: Sat Jul 15 17:54:36 2017 "
;
Ocarina_Version
:
constant
String
:=
"Ocarina 2017.x (Working Copy from r0338d89)"
;
end
Parser_Version
;
\ 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