aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2016-05-12 09:15:44 -0400
committerJonathan Corbet <corbet@lwn.net>2016-05-14 11:56:56 -0400
commit0e95abf9be3108498128458ffb087209e0a1b5fa (patch)
tree2c95d947abaf86b11f43e8868ac83ae06dd92efc
parent064669b43baa4b74b262c49db3ce69118e2f0f2d (diff)
docproc: print a comment about autogeneration for rst output
Leave a hint to folks which file to edit instead. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
-rw-r--r--scripts/docproc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/docproc.c b/scripts/docproc.c
index 9babfd108d2e..0a12593b9041 100644
--- a/scripts/docproc.c
+++ b/scripts/docproc.c
@@ -45,6 +45,7 @@
45#include <getopt.h> 45#include <getopt.h>
46#include <sys/types.h> 46#include <sys/types.h>
47#include <sys/wait.h> 47#include <sys/wait.h>
48#include <time.h>
48 49
49/* exitstatus is used to keep track of any failing calls to kernel-doc, 50/* exitstatus is used to keep track of any failing calls to kernel-doc,
50 * but execution continues. */ 51 * but execution continues. */
@@ -616,6 +617,12 @@ int main(int argc, char *argv[])
616 } 617 }
617 618
618 if (strcmp("doc", subcommand) == 0) { 619 if (strcmp("doc", subcommand) == 0) {
620 if (file_format == FORMAT_RST) {
621 time_t t = time(NULL);
622 printf(".. generated from %s by docproc %s\n",
623 filename, ctime(&t));
624 }
625
619 /* Need to do this in two passes. 626 /* Need to do this in two passes.
620 * First pass is used to collect all symbols exported 627 * First pass is used to collect all symbols exported
621 * in the various files; 628 * in the various files;