1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Provide a heuristic for RCS conflicts.

Obtained from:	NetBSD
This commit is contained in:
Juli Mallett 2002-06-20 19:44:34 +00:00
parent f7c5a79be8
commit 536dddacf1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98506

View File

@ -772,9 +772,16 @@ ParseDoDependency (line)
if (!*cp) {
/*
* Ending a dependency line without an operator is a Bozo
* no-no
* no-no. As a heuristic, this is also often triggered by
* undetected conflicts from cvs/rcs merges.
*/
Parse_Error (PARSE_FATAL, "Need an operator");
if ((strncmp(line, "<<<<<<", 6) == 0) ||
(strncmp(line, "======", 6) == 0) ||
(strncmp(line, ">>>>>>", 6) == 0))
Parse_Error (PARSE_FATAL,
"Makefile appears to contain unresolved cvs/rcs/??? merge conflicts");
else
Parse_Error (PARSE_FATAL, "Need an operator");
return;
}
*cp = '\0';