]> granicus.if.org Git - zfs/commitdiff
Correct man page dates
authorRichard Laager <rlaager@wiktel.com>
Sun, 5 May 2019 21:45:56 +0000 (16:45 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 8 May 2019 17:59:32 +0000 (10:59 -0700)
Various changes (many by me) have been made to the man pages without
bumping their dates.  I have now corrected them based on the last commit
to each file.  I also added the script I used to make these changes.

Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Laager <rlaager@wiktel.com>
Closes #8710

man/man8/zdb.8
man/man8/zfs-program.8
man/man8/zfs.8
man/man8/zgenhostid.8
man/man8/zpool.8
scripts/Makefile.am
scripts/man-dates.sh [new file with mode: 0755]

index dc0972b64fe67c239a510318869c6f77fc2a1572..57403cba74a21480d0a77a4d3153e4395f2ece1e 100644 (file)
@@ -15,7 +15,7 @@
 .\" Copyright (c) 2017 Lawrence Livermore National Security, LLC.
 .\" Copyright (c) 2017 Intel Corporation.
 .\"
 .\" 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
 .Dt ZDB 8 SMM
 .Os Linux
 .Sh NAME
index bc2c10fdc131e9481e4286b7c03693c9985efd5f..532fda19b6b7966ac16d284ab69841d5c0a23434 100644 (file)
@@ -10,7 +10,7 @@
 .\"
 .\" Copyright (c) 2016, 2019 by Delphix. All Rights Reserved.
 .\"
 .\"
 .\" Copyright (c) 2016, 2019 by Delphix. All Rights Reserved.
 .\"
-.Dd January 21, 2016
+.Dd February 26, 2019
 .Dt ZFS-PROGRAM 8
 .Os
 .Sh NAME
 .Dt ZFS-PROGRAM 8
 .Os
 .Sh NAME
index 06cc9cb0908294a9ab6ba5d3628cc33ffdfffb8e..8d7b0bbb6fbaa90e1422f5c51bf38fef46b21e87 100644 (file)
@@ -30,7 +30,7 @@
 .\" Copyright 2018 Nexenta Systems, Inc.
 .\" Copyright 2018 Joyent, Inc.
 .\"
 .\" 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
 .Dt ZFS 8 SMM
 .Os Linux
 .Sh NAME
index f492f6bd3f7a17ac6c9ac0ee5b792e2a48fce037..607efe17f88a85bf3b1064d7b324150b0b668843 100644 (file)
@@ -21,7 +21,7 @@
 .\"
 .\" Copyright (c) 2017 by Lawrence Livermore National Security, LLC.
 .\"
 .\"
 .\" 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
 .Dt ZGENHOSTID 8 SMM
 .Os Linux
 .Sh NAME
index 55ef6354e36e4f22a13f42cd0f628407a5e47368..bdad81149b8618fd63945eae9c8924a91cbbb09c 100644 (file)
@@ -27,7 +27,7 @@
 .\" Copyright 2017 Nexenta Systems, Inc.
 .\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved.
 .\"
 .\" 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
 .Dt ZPOOL 8 SMM
 .Os Linux
 .Sh NAME
index de0d4795d38755f799d2d9eb462f643cdf838044..18a9449cff0cef18cdeed48c45d465802a28ca4d 100644 (file)
@@ -15,6 +15,7 @@ EXTRA_DIST = \
        enum-extract.pl \
        kmodtool \
        make_gitrev.sh \
        enum-extract.pl \
        kmodtool \
        make_gitrev.sh \
+       man-dates.sh \
        paxcheck.sh \
        zfs2zol-patch.sed \
        cstyle.pl
        paxcheck.sh \
        zfs2zol-patch.sed \
        cstyle.pl
diff --git a/scripts/man-dates.sh b/scripts/man-dates.sh
new file mode 100755 (executable)
index 0000000..186d946
--- /dev/null
@@ -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