Skip to content
This repository has been archived by the owner on Dec 29, 2017. It is now read-only.

Commit

Permalink
docproc: print a comment about autogeneration for rst output
Browse files Browse the repository at this point in the history
Leave a hint to folks which file to edit instead.

Signed-off-by: Jani Nikula <[email protected]>
Signed-off-by: Jonathan Corbet <[email protected]>
  • Loading branch information
jnikula authored and Jonathan Corbet committed May 14, 2016
1 parent 064669b commit 0e95abf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/docproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include <getopt.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <time.h>

/* exitstatus is used to keep track of any failing calls to kernel-doc,
* but execution continues. */
Expand Down Expand Up @@ -616,6 +617,12 @@ int main(int argc, char *argv[])
}

if (strcmp("doc", subcommand) == 0) {
if (file_format == FORMAT_RST) {
time_t t = time(NULL);
printf(".. generated from %s by docproc %s\n",
filename, ctime(&t));
}

/* Need to do this in two passes.
* First pass is used to collect all symbols exported
* in the various files;
Expand Down

0 comments on commit 0e95abf

Please sign in to comment.