aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man/man8/zdb.82
-rw-r--r--man/man8/zfs-program.82
-rw-r--r--man/man8/zfs.82
-rw-r--r--man/man8/zgenhostid.82
-rw-r--r--man/man8/zpool.82
-rw-r--r--scripts/Makefile.am1
-rwxr-xr-xscripts/man-dates.sh12
7 files changed, 18 insertions, 5 deletions
diff --git a/man/man8/zdb.8 b/man/man8/zdb.8
index dc0972b64..57403cba7 100644
--- a/man/man8/zdb.8
+++ b/man/man8/zdb.8
@@ -15,7 +15,7 @@
.\" Copyright (c) 2017 Lawrence Livermore National Security, LLC.
.\" Copyright (c) 2017 Intel Corporation.
.\"
-.Dd April 14, 2017
+.Dd April 14, 2019
.Dt ZDB 8 SMM
.Os Linux
.Sh NAME
diff --git a/man/man8/zfs-program.8 b/man/man8/zfs-program.8
index bc2c10fdc..532fda19b 100644
--- a/man/man8/zfs-program.8
+++ b/man/man8/zfs-program.8
@@ -10,7 +10,7 @@
.\"
.\" Copyright (c) 2016, 2019 by Delphix. All Rights Reserved.
.\"
-.Dd January 21, 2016
+.Dd February 26, 2019
.Dt ZFS-PROGRAM 8
.Os
.Sh NAME
diff --git a/man/man8/zfs.8 b/man/man8/zfs.8
index 06cc9cb09..8d7b0bbb6 100644
--- a/man/man8/zfs.8
+++ b/man/man8/zfs.8
@@ -30,7 +30,7 @@
.\" Copyright 2018 Nexenta Systems, Inc.
.\" Copyright 2018 Joyent, Inc.
.\"
-.Dd February 26, 2019
+.Dd April 30, 2019
.Dt ZFS 8 SMM
.Os Linux
.Sh NAME
diff --git a/man/man8/zgenhostid.8 b/man/man8/zgenhostid.8
index f492f6bd3..607efe17f 100644
--- a/man/man8/zgenhostid.8
+++ b/man/man8/zgenhostid.8
@@ -21,7 +21,7 @@
.\"
.\" Copyright (c) 2017 by Lawrence Livermore National Security, LLC.
.\"
-.Dd July 24, 2017
+.Dd September 16, 2017
.Dt ZGENHOSTID 8 SMM
.Os Linux
.Sh NAME
diff --git a/man/man8/zpool.8 b/man/man8/zpool.8
index 55ef6354e..bdad81149 100644
--- a/man/man8/zpool.8
+++ b/man/man8/zpool.8
@@ -27,7 +27,7 @@
.\" Copyright 2017 Nexenta Systems, Inc.
.\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
.\"
-.Dd November 29, 2018
+.Dd May 2, 2019
.Dt ZPOOL 8 SMM
.Os Linux
.Sh NAME
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index de0d4795d..18a9449cf 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -15,6 +15,7 @@ EXTRA_DIST = \
enum-extract.pl \
kmodtool \
make_gitrev.sh \
+ man-dates.sh \
paxcheck.sh \
zfs2zol-patch.sed \
cstyle.pl
diff --git a/scripts/man-dates.sh b/scripts/man-dates.sh
new file mode 100755
index 000000000..186d94639
--- /dev/null
+++ b/scripts/man-dates.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# This script updates the date lines in the man pages to the date of the last
+# commit to that file.
+
+set -eu
+
+find man -type f | while read -r i ; do
+ git_date=$(git log -1 --date=short --format="%ad" -- "$i")
+ [ "x$git_date" = "x" ] && continue
+ sed -i "s|^\.Dd.*|.Dd $(date -d "$git_date" "+%B %-d, %Y")|" "$i"
+done