diff options
author | Jani Nikula <jani.nikula@intel.com> | 2016-05-12 15:15:44 +0200 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2016-05-14 17:56:56 +0200 |
commit | 0e95abf9be3108498128458ffb087209e0a1b5fa (patch) | |
tree | 2c95d947abaf86b11f43e8868ac83ae06dd92efc /scripts | |
parent | docproc: add support for reStructuredText format via --rst option (diff) | |
download | linux-0e95abf9be3108498128458ffb087209e0a1b5fa.tar.xz linux-0e95abf9be3108498128458ffb087209e0a1b5fa.zip |
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>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/docproc.c | 7 |
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 @@ #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. */ @@ -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; |