" * Followed by an Example: section with a standalone\n"
" * (trivial and usually useless) program\n"
" */\n", m->basename, m->basename) < 0) {
" * Followed by an Example: section with a standalone\n"
" * (trivial and usually useless) program\n"
" */\n", m->basename, m->basename) < 0) {
- unlink_noerr("_info.c.new");
- err(1, "Writing to _info.c.new to insert documentation");
+ unlink_noerr("_info.new");
+ err(1, "Writing to _info.new to insert documentation");
- unlink_noerr("_info.c.new");
- err(1, "Reading _info.c");
+ unlink_noerr("_info.new");
+ err(1, "Reading _info");
- unlink_noerr("_info.c.new");
- err(1, "Appending _info.c to _info.c.new");
+ unlink_noerr("_info.new");
+ err(1, "Appending _info to _info.new");
- unlink_noerr("_info.c.new");
- err(1, "Closing _info.c.new");
+ unlink_noerr("_info.new");
+ err(1, "Closing _info.new");
- if (rename("_info.c.new", "_info.c") != 0) {
- unlink_noerr("_info.c.new");
- err(1, "Renaming _info.c.new to _info.c");
+ if (!move_file("_info.new", "_info")) {
+ unlink_noerr("_info.new");
+ err(1, "Renaming _info.new to _info");
if (!id->summary) {
has_info_documentation.handle = create_info_template_doc;
reason = talloc_asprintf_append(reason,
if (!id->summary) {
has_info_documentation.handle = create_info_template_doc;
reason = talloc_asprintf_append(reason,
- "Your _info.c has no module description.\n\n"
- "The lines after the first summary line in the _info.c file\n"
+ "Your _info file has no module description.\n\n"
+ "The lines after the first summary line in the _info file\n"
"documentation should describe the purpose and use of the\n"
"overall package\n");
if (!id->example)
reason = talloc_asprintf_append(reason,
"documentation should describe the purpose and use of the\n"
"overall package\n");
if (!id->example)
reason = talloc_asprintf_append(reason,
- "Your _info.c has no module example.\n\n"
- "There should be an Example: section of the _info.c documentation\n"
+ "Your _info file has no module example.\n\n"
+ "There should be an Example: section of the _info documentation\n"
- .name = "Documentation in _info.c",
+ .key = "info-documentation",
+ .name = "Module has documentation in _info",
.total_score = 3,
.score = has_info_documentation_score,
.check = check_has_info_documentation,
.describe = describe_has_info_documentation,
};
.total_score = 3,
.score = has_info_documentation_score,
.check = check_has_info_documentation,
.describe = describe_has_info_documentation,
};