Skip to content

Commit

Permalink
Alr.Commands.Init: Fix missing config src dir (#981)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien-Chouteau authored Apr 11, 2022
1 parent 559aac7 commit 3195173
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/alr/alr-commands-init.adb
Original file line number Diff line number Diff line change
Expand Up @@ -98,19 +98,6 @@ package body Alr.Commands.Init is
-- Use more than 80 columns for more readable strings
pragma Style_Checks ("M200");

-- -- Config project file
-- if not Create (Config_Filename) then
-- Trace.Warning ("Cannot create '" & Config_Filename & "'");
-- return;
-- end if;
-- Put_Line ("abstract project " & Mixed_Name & "_Config is");
-- Put_Line (" Crate_Version := ""0.0.0"";");
-- Put_Line (" Ada_Compiler_Switches := " &
-- "External_As_List (""ADAFLAGS"", "" "");");
--
-- TIO.Put (File, "end " & Mixed_Name & "_Config;");
-- TIO.Close (File);

-- Main project file
if not Create (Filename) then
Trace.Warning ("Cannot create '" & Filename & "'");
Expand All @@ -124,7 +111,7 @@ package body Alr.Commands.Init is
Put_Line (" for Library_Version use Project'Library_Name & "".so."" & " & Mixed_Name & "_Config.Crate_Version;");
Put_New_Line;
end if;
Put_Line (" for Source_Dirs use (""src"");");
Put_Line (" for Source_Dirs use (""src/"", ""config/"");");
Put_Line (" for Object_Dir use ""obj/"" & " & Mixed_Name & "_Config.Build_Profile;");
Put_Line (" for Create_Missing_Dirs use ""True"";");
if For_Library then
Expand Down

0 comments on commit 3195173

Please sign in to comment.