mirror of
https://github.com/opnsense/src.git
synced 2026-04-04 17:05:14 -04:00
Notable upstream pull request merges:
#12149: Multiple man-pages: Move to appropriate section
#12158: Re-embed multilist_t storage
#12191: Convert non-libzpool libraries to -fvisibility=hidden
#12196: Unify manpage makefiles, move pages to better sexions, ...
#12210: libzutil: import filtering optimisation
#12212: Remove pool io kstats
Obtained from: OpenZFS
OpenZFS commit: afa7b34845
12 lines
335 B
Bash
Executable file
12 lines
335 B
Bash
Executable file
#!/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")
|
|
[ -z "$git_date" ] && continue
|
|
sed -i "s|^\.Dd.*|.Dd $(date -d "$git_date" "+%B %-d, %Y")|" "$i"
|
|
done
|