Modification des codes de sortie pour les erreurs dans le système de build

This commit is contained in:
2025-03-02 15:57:42 +01:00
parent 91484ff5cc
commit 8f79794ddc
4 changed files with 753 additions and 5 deletions

View File

@@ -162,7 +162,7 @@ public class BakefileParser {
if (!Files.exists(Paths.get(filename))) {
System.out.println("*** No targets specified and no makefile found. Stop.");
System.exit(1);
System.exit(2);
}
try {
@@ -192,7 +192,7 @@ public class BakefileParser {
if (line.matches("^ +.*$")) {
System.err.println(filename + ":" + (i+1) + ": *** missing separator. Stop.");
System.exit(1);
System.exit(2);
}
Matcher varMatcher = VARIABLE_PATTERN.matcher(line);