bin/setup-man@b1b644e9825d
bin/setup-man
Tue, 14 Feb 2023 02:39:04 -0600
- author
- Meredith Howard <mhoward@roomag.org>
- date
- Tue, 14 Feb 2023 02:39:04 -0600
- changeset 1020
- b1b644e9825d
- parent 756
-
8bc91181db9d
- permissions
- -rwxr-xr-x
Add more plain vim plugins
#!/bin/sh
set -eu
cd $(hg root)
SOURCES="${@:-$(hg stat -Aqn -I 'bin/*')}"
MAN1=".man/man1"
mkdir -p $MAN1 || true
for SRC in $(grep -El '^=(head|cut)' $SOURCES); do
DST="${MAN1}/$(basename $SRC).1"
if [ ! -f $DST ] || [ "$SRC" -nt "$SRC" ]; then
pod2man -v --errors=stderr "$SRC" "$DST"
fi
done