Commit 070d2af5 authored by TASTE User's avatar TASTE User

Display proper Ocarina Version

parent c7895aaa
......@@ -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; \
......
......@@ -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.Configuration.Ocarina_Version;
& "Based on " & Parser_Version.Ocarina_Version;
begin
Put_Line (The_Banner);
end Banner;
......
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment