about summary refs log tree commit homepage
path: root/Documentation/txt2pre
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-11-09 00:20:50 +0000
committerEric Wong <e@80x24.org>2021-11-09 00:43:37 +0000
commitf349c77a421ef1082eb0b22e8f71304df610fa6b (patch)
tree460bb3bd35e1b9f057c90b11627fd2e2b5c6110f /Documentation/txt2pre
parent666dde69a3f64456321b7c701070712d6b85e359 (diff)
downloadpublic-inbox-f349c77a421ef1082eb0b22e8f71304df610fa6b.tar.gz
Text versions of manpages do not need to be generated for normal
installations, they're only used for generating HTML and our
amazing, award-winning homepage.

We'll also rely on touch(1) instead of Perl utime to benefit
users w/o git-set-file-times in txt2pre.  Perl numeric values
cannot represent nanosecond resolution accurately even with
Time::HiRes; which causes nanosecond-aware make(1)
implementations to repeatedly rebuild.
Diffstat (limited to 'Documentation/txt2pre')
-rwxr-xr-xDocumentation/txt2pre6
1 files changed, 0 insertions, 6 deletions
diff --git a/Documentation/txt2pre b/Documentation/txt2pre
index 04bc3b0e..3ecd9100 100755
--- a/Documentation/txt2pre
+++ b/Documentation/txt2pre
@@ -177,9 +177,3 @@ print '<html><head>',
   "<title>$title</title>",
   "</head><body><pre>",  $str , '</pre></body></html>';
 STDOUT->flush;
-
-# keep mtime on website consistent so clients can cache
-if (-f STDIN && -f STDOUT) {
-        my @st = stat(STDIN);
-        utime($st[8], $st[9], \*STDOUT);
-}