From 73fe3421f1ecbdc83600d5acfc643c33dbb9a0f2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 1 Dec 2019 10:50:19 +0000 Subject: build: support doc generation w/o GNU make We can replace the GNU-isms for building docs with Perl5 equivalents. The only downside is the resulting Makefile gets larger, but that's the price of portability. --- Documentation/txt2pre | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Documentation/txt2pre') diff --git a/Documentation/txt2pre b/Documentation/txt2pre index 6f2a8c8a..7cab0fa2 100755 --- a/Documentation/txt2pre +++ b/Documentation/txt2pre @@ -22,3 +22,9 @@ print '', qq(), "$title", "
",  $str , '
'; + +# keep mtime on website consistent so clients can cache +if (-f STDIN && -f STDOUT) { + my @st = stat(STDIN); + utime($st[8], $st[9], \*STDOUT); +} -- cgit v1.2.3-24-ge0c7