X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=Documentation%2Ftxt2pre;h=cb6a76138131a8d0abd3593d013860d523b1f1fa;hb=e3e9ebdaaf2c2f8192fc003f1857979f933b9a8b;hp=72de0b795567343bde80febc9e5bc90911ef61b9;hpb=dfb1ed795ba2890b710b3faee82db9ccdf888e17;p=public-inbox.git diff --git a/Documentation/txt2pre b/Documentation/txt2pre index 72de0b79..cb6a7613 100755 --- a/Documentation/txt2pre +++ b/Documentation/txt2pre @@ -1,5 +1,5 @@ #!/usr/bin/env perl -# Copyright (C) 2014-2016 all contributors +# Copyright (C) 2014-2019 all contributors # License: AGPL-3.0+ # # Stupid script to make HTML from preformatted, utf-8 text versions, @@ -22,3 +22,10 @@ print '', qq(), "$title", "
",  $str , '
'; +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); +}