Also_Predef : Boolean := False; -- -a
Dependable : Boolean := False; -- -d
- License : Boolean := False; -- -l
Very_Verbose_Mode : Boolean := False; -- -V
-- Command line flags
procedure Usage;
-- Print usage message
- procedure Output_License_Information;
- -- Output license statement, and if not found, output reference to COPYING
-
function Image (Restriction : Restriction_Id) return String;
-- Returns the capitalized image of Restriction
return Normalize_Pathname (Path);
end Normalize;
- --------------------------------
- -- Output_License_Information --
- --------------------------------
-
- procedure Output_License_Information is
- begin
- case Build_Type is
- when others =>
- Write_Str ("Please refer to file COPYING in your distribution"
- & " for license terms.");
- Write_Eol;
- end case;
- end Output_License_Information;
-
-------------------
-- Output_Object --
-------------------
when 'o' => Reset_Print; Print_Object := True;
when 'v' => Verbose_Mode := True;
when 'd' => Dependable := True;
- when 'l' => License := True;
when 'V' => Very_Verbose_Mode := True;
when others => OK := False;
"depend");
Write_Eol;
- -- Line for -l
-
- Write_Str (" -l output license information");
- Write_Eol;
-
-- Line for -v
Write_Str (" -v verbose output, full path and unit " &
Next_Arg := Next_Arg + 1;
end loop Scan_Args;
- -- If -l (output license information) is given, it must be the only switch
-
- if License then
- if Arg_Count = 2 then
- Output_License_Information;
-
- else
- Set_Standard_Error;
- Write_Str ("Can't use -l with another switch");
- Write_Eol;
- Try_Help;
- Exit_Program (E_Fatal);
- end if;
- end if;
-
-- Handle --RTS switch
if RTS_Specified /= null then