Commit ac401891 by Robert Dewar Committed by Arnaud Charlet

gnatbind.adb: Correct starting date in --version string.

2013-09-10  Robert Dewar  <dewar@adacore.com>

	* gnatbind.adb: Correct starting date in --version string.
	* gnatdll.adb: Use Check_Version_And_Help_G to implement --help
	and --version.
	* gnatkr.adb: Use Check_Version_And_Help_G to implement --help
	and --version.
	* gnatlink.adb: Correct starting date in --version string.
	* gnatls.adb: Correct starting date in --version string.
	* make.adb: Correct starting date in --version string.

From-SVN: r202465
parent f2c0ca66
2013-09-10 Robert Dewar <dewar@adacore.com> 2013-09-10 Robert Dewar <dewar@adacore.com>
* gnatbind.adb: Correct starting date in --version string.
* gnatdll.adb: Use Check_Version_And_Help_G to implement --help
and --version.
* gnatkr.adb: Use Check_Version_And_Help_G to implement --help
and --version.
* gnatlink.adb: Correct starting date in --version string.
* gnatls.adb: Correct starting date in --version string.
* make.adb: Correct starting date in --version string.
2013-09-10 Robert Dewar <dewar@adacore.com>
* switch-c.adb: Minor reformatting. * switch-c.adb: Minor reformatting.
* atree.ads (Original_Nodes): Add documentation on ASIS usage. * atree.ads (Original_Nodes): Add documentation on ASIS usage.
* sinfo.ads: Add section on ASIS mode (documentation only). * sinfo.ads: Add section on ASIS mode (documentation only).
......
...@@ -572,7 +572,7 @@ begin ...@@ -572,7 +572,7 @@ begin
-- First, scan to detect --version and/or --help -- First, scan to detect --version and/or --help
Check_Version_And_Help ("GNATBIND", "1995"); Check_Version_And_Help ("GNATBIND", "1992");
-- We need to Scan_Bind_Args first, to set Verbose_Mode, so we know whether -- We need to Scan_Bind_Args first, to set Verbose_Mode, so we know whether
-- to Put_Bind_Args. -- to Put_Bind_Args.
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 1997-2008, Free Software Foundation, Inc. -- -- Copyright (C) 1997-2013, Free Software Foundation, Inc. --
-- -- -- --
-- GNAT is free software; you can redistribute it and/or modify it under -- -- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- -- -- terms of the GNU General Public License as published by the Free Soft- --
...@@ -26,16 +26,18 @@ ...@@ -26,16 +26,18 @@
-- GNATDLL is a Windows specific tool for building a DLL. -- GNATDLL is a Windows specific tool for building a DLL.
-- Both relocatable and non-relocatable DLL's are supported -- Both relocatable and non-relocatable DLL's are supported
with Gnatvsn;
with MDLL.Fil; use MDLL.Fil;
with MDLL.Utl; use MDLL.Utl;
with Switch; use Switch;
with Ada.Text_IO; use Ada.Text_IO; with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Exceptions; use Ada.Exceptions; with Ada.Exceptions; use Ada.Exceptions;
with Ada.Command_Line; use Ada.Command_Line; with Ada.Command_Line; use Ada.Command_Line;
with GNAT.OS_Lib; use GNAT.OS_Lib; with GNAT.OS_Lib; use GNAT.OS_Lib;
with GNAT.Command_Line; use GNAT.Command_Line; with GNAT.Command_Line; use GNAT.Command_Line;
with Gnatvsn;
with MDLL.Fil; use MDLL.Fil;
with MDLL.Utl; use MDLL.Utl;
procedure Gnatdll is procedure Gnatdll is
...@@ -502,9 +504,13 @@ procedure Gnatdll is ...@@ -502,9 +504,13 @@ procedure Gnatdll is
end loop; end loop;
end Check_Context; end Check_Context;
procedure Check_Version_And_Help is new Check_Version_And_Help_G (Syntax);
-- Start of processing for Gnatdll -- Start of processing for Gnatdll
begin begin
Check_Version_And_Help ("GNATDLL", "1997");
if Ada.Command_Line.Argument_Count = 0 then if Ada.Command_Line.Argument_Count = 0 then
Help := True; Help := True;
else else
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 1992-2007, Free Software Foundation, Inc. -- -- Copyright (C) 1992-2013, Free Software Foundation, Inc. --
-- -- -- --
-- GNAT is free software; you can redistribute it and/or modify it under -- -- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- -- -- terms of the GNU General Public License as published by the Free Soft- --
...@@ -23,10 +23,13 @@ ...@@ -23,10 +23,13 @@
-- -- -- --
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
with Ada.Characters.Handling; use Ada.Characters.Handling;
with Ada.Command_Line; use Ada.Command_Line;
with Gnatvsn; with Gnatvsn;
with Krunch; with Krunch;
with Switch; use Switch;
with Ada.Characters.Handling; use Ada.Characters.Handling;
with Ada.Command_Line; use Ada.Command_Line;
with System.IO; use System.IO; with System.IO; use System.IO;
procedure Gnatkr is procedure Gnatkr is
...@@ -40,11 +43,26 @@ procedure Gnatkr is ...@@ -40,11 +43,26 @@ procedure Gnatkr is
pragma Import (C, Get_Maximum_File_Name_Length, pragma Import (C, Get_Maximum_File_Name_Length,
"__gnat_get_maximum_file_name_length"); "__gnat_get_maximum_file_name_length");
procedure Usage;
-- Output usage information
-----------
-- Usage --
-----------
procedure Usage is
begin
Put_Line ("Usage: gnatkr filename[.extension] [krunch-count]");
end Usage;
procedure Check_Version_And_Help is new Check_Version_And_Help_G (Usage);
begin begin
Check_Version_And_Help ("GNATKR", "1992");
Count := Argument_Count; Count := Argument_Count;
if Count < 1 or else Count > 2 then if Count < 1 or else Count > 2 then
Put_Line ("Usage: gnatkr filename[.extension] [krunch-count]"); Usage;
raise Exit_Program; raise Exit_Program;
else else
......
...@@ -355,7 +355,7 @@ procedure Gnatlink is ...@@ -355,7 +355,7 @@ procedure Gnatlink is
begin begin
-- First, check for --version and --help -- First, check for --version and --help
Check_Version_And_Help ("GNATLINK", "1995"); Check_Version_And_Help ("GNATLINK", "1996");
-- Loop through arguments of gnatlink command -- Loop through arguments of gnatlink command
......
...@@ -1556,7 +1556,7 @@ begin ...@@ -1556,7 +1556,7 @@ begin
-- First check for --version or --help -- First check for --version or --help
Check_Version_And_Help ("GNATLS", "1997"); Check_Version_And_Help ("GNATLS", "1992");
-- Loop to scan out arguments -- Loop to scan out arguments
......
...@@ -5803,7 +5803,7 @@ package body Make is ...@@ -5803,7 +5803,7 @@ package body Make is
if Verbose_Mode then if Verbose_Mode then
Write_Eol; Write_Eol;
Display_Version ("GNATMAKE", "1995"); Display_Version ("GNATMAKE", "1992");
end if; end if;
if Osint.Number_Of_Files = 0 then if Osint.Number_Of_Files = 0 then
......
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