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
.\" 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.
.\"
.Dt ZDB 8 SMM
.Os Linux
.Sh NAME
.Dt ZDB 8 SMM
.Os Linux
.Sh NAME
.\"
.\" Copyright (c) 2016, 2019 by Delphix. All Rights Reserved.
.\"
.\"
.\" Copyright (c) 2016, 2019 by Delphix. All Rights Reserved.
.\"
.Dt ZFS-PROGRAM 8
.Os
.Sh NAME
.Dt ZFS-PROGRAM 8
.Os
.Sh NAME
.\" Copyright 2018 Nexenta Systems, Inc.
.\" Copyright 2018 Joyent, Inc.
.\"
.\" Copyright 2018 Nexenta Systems, Inc.
.\" Copyright 2018 Joyent, Inc.
.\"
.Dt ZFS 8 SMM
.Os Linux
.Sh NAME
.Dt ZFS 8 SMM
.Os Linux
.Sh NAME
.\"
.\" Copyright (c) 2017 by Lawrence Livermore National Security, LLC.
.\"
.\"
.\" Copyright (c) 2017 by Lawrence Livermore National Security, LLC.
.\"
.Dt ZGENHOSTID 8 SMM
.Os Linux
.Sh NAME
.Dt ZGENHOSTID 8 SMM
.Os Linux
.Sh NAME
.\" 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.
.\"
.Dt ZPOOL 8 SMM
.Os Linux
.Sh NAME
.Dt ZPOOL 8 SMM
.Os Linux
.Sh NAME
enum-extract.pl \
kmodtool \
make_gitrev.sh \
enum-extract.pl \
kmodtool \
make_gitrev.sh \
paxcheck.sh \
zfs2zol-patch.sed \
cstyle.pl
paxcheck.sh \
zfs2zol-patch.sed \
cstyle.pl
--- /dev/null
+#!/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