Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alr.Commands.Init: Fix missing config src dir #981

Merged
merged 1 commit into from
Apr 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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