Please sign in to comment.
Correct man page dates
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 <email@example.com> Reviewed-by: Brian Behlendorf <firstname.lastname@example.org> Signed-off-by: Richard Laager <email@example.com> Closes #8710
- Loading branch information...
Showing with 18 additions and 5 deletions.
|@@ -0,0 +1,12 @@|
|# This script updates the date lines in the man pages to the date of the last|
|# commit to that file.|
|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"|