Commit 87b62748 by Arnaud Charlet

gnat1drv.adb, [...]: Output the copyright message on a separate line from the version message.

	* gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
	gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
	separate line from the version message.

From-SVN: r90910
parent 47190c6b
...@@ -170,7 +170,8 @@ begin ...@@ -170,7 +170,8 @@ begin
Write_Eol; Write_Eol;
Write_Str ("GNAT "); Write_Str ("GNAT ");
Write_Str (Gnat_Version_String); Write_Str (Gnat_Version_String);
Write_Str (" Copyright 1992-2004 Free Software Foundation, Inc."); Write_Eol;
Write_Str ("Copyright 1992-2004 Free Software Foundation, Inc.");
Write_Eol; Write_Eol;
end if; end if;
......
...@@ -480,7 +480,8 @@ begin ...@@ -480,7 +480,8 @@ begin
Write_Eol; Write_Eol;
Write_Str ("GNATBIND "); Write_Str ("GNATBIND ");
Write_Str (Gnat_Version_String); Write_Str (Gnat_Version_String);
Write_Str (" Copyright 1995-2004 Free Software Foundation, Inc."); Write_Eol;
Write_Str ("Copyright 1995-2004 Free Software Foundation, Inc.");
Write_Eol; Write_Eol;
end if; end if;
......
...@@ -1145,10 +1145,10 @@ procedure Gnatchop is ...@@ -1145,10 +1145,10 @@ procedure Gnatchop is
-- tools write to standard output ??? -- tools write to standard output ???
Put (Standard_Error, "GNATCHOP "); Put (Standard_Error, "GNATCHOP ");
Put (Standard_Error, Gnatvsn.Gnat_Version_String); Put_Line (Standard_Error, Gnatvsn.Gnat_Version_String);
Put_Line Put_Line
(Standard_Error, (Standard_Error,
" Copyright 1998-2004, Ada Core Technologies Inc."); "Copyright 1998-2004, Ada Core Technologies Inc.");
when 'w' => when 'w' =>
Overwrite_Files := True; Overwrite_Files := True;
......
...@@ -238,8 +238,8 @@ procedure Gnatfind is ...@@ -238,8 +238,8 @@ procedure Gnatfind is
procedure Write_Usage is procedure Write_Usage is
begin begin
Put_Line ("GNATFIND " & Gnatvsn.Gnat_Version_String Put_Line ("GNATFIND " & Gnatvsn.Gnat_Version_String);
& " Copyright 1998-2004, Ada Core Technologies Inc."); Put_Line ("Copyright 1998-2004, Ada Core Technologies Inc.");
Put_Line ("Usage: gnatfind pattern[:sourcefile[:line[:column]]] " Put_Line ("Usage: gnatfind pattern[:sourcefile[:line[:column]]] "
& "[file1 file2 ...]"); & "[file1 file2 ...]");
New_Line; New_Line;
......
...@@ -1278,7 +1278,8 @@ procedure Gnatlink is ...@@ -1278,7 +1278,8 @@ procedure Gnatlink is
Write_Eol; Write_Eol;
Write_Str ("GNATLINK "); Write_Str ("GNATLINK ");
Write_Str (Gnat_Version_String); Write_Str (Gnat_Version_String);
Write_Str (" Copyright 1995-2004 Free Software Foundation, Inc"); Write_Eol;
Write_Str ("Copyright 1995-2004 Free Software Foundation, Inc");
Write_Eol; Write_Eol;
end if; end if;
end Write_Header; end Write_Header;
......
...@@ -1484,7 +1484,8 @@ begin ...@@ -1484,7 +1484,8 @@ begin
Write_Eol; Write_Eol;
Write_Str ("GNATLS "); Write_Str ("GNATLS ");
Write_Str (Gnat_Version_String); Write_Str (Gnat_Version_String);
Write_Str (" Copyright 1997-2004 Free Software Foundation, Inc."); Write_Eol;
Write_Str ("Copyright 1997-2004 Free Software Foundation, Inc.");
Write_Eol; Write_Eol;
Write_Eol; Write_Eol;
Write_Str ("Source Search Path:"); Write_Str ("Source Search Path:");
......
...@@ -209,8 +209,8 @@ procedure Gnatxref is ...@@ -209,8 +209,8 @@ procedure Gnatxref is
procedure Write_Usage is procedure Write_Usage is
begin begin
Put_Line ("GNATXREF " & Gnatvsn.Gnat_Version_String Put_Line ("GNATXREF " & Gnatvsn.Gnat_Version_String);
& " Copyright 1998-2004, Ada Core Technologies Inc."); Put_Line ("Copyright 1998-2004, Ada Core Technologies Inc.");
Put_Line ("Usage: gnatxref [switches] file1 file2 ..."); Put_Line ("Usage: gnatxref [switches] file1 file2 ...");
New_Line; New_Line;
Put_Line (" file ... list of source files to xref, " & Put_Line (" file ... list of source files to xref, " &
......
...@@ -45,7 +45,6 @@ with GNAT.Command_Line; ...@@ -45,7 +45,6 @@ with GNAT.Command_Line;
with GNAT.Directory_Operations; use GNAT.Directory_Operations; with GNAT.Directory_Operations; use GNAT.Directory_Operations;
with GNAT.OS_Lib; use GNAT.OS_Lib; with GNAT.OS_Lib; use GNAT.OS_Lib;
package body GPrep is package body GPrep is
Copyright_Displayed : Boolean := False; Copyright_Displayed : Boolean := False;
...@@ -133,9 +132,8 @@ package body GPrep is ...@@ -133,9 +132,8 @@ package body GPrep is
procedure Display_Copyright is procedure Display_Copyright is
begin begin
if not Copyright_Displayed then if not Copyright_Displayed then
Write_Line ("GNAT Preprocessor " & Write_Line ("GNAT Preprocessor " & Gnatvsn.Gnat_Version_String);
Gnatvsn.Gnat_Version_String & Write_Line ("Copyright 1996-2004 Free Software Foundation, Inc.");
" Copyright 1996-2004 Free Software Foundation, Inc.");
Copyright_Displayed := True; Copyright_Displayed := True;
end if; end if;
end Display_Copyright; end Display_Copyright;
......
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