bin/setup-man@b0a0ba3240b5
bin/setup-man
Wed, 25 Sep 2024 15:03:13 -0500
- author
- Meredith Howard <mhoward@roomag.org>
- date
- Wed, 25 Sep 2024 15:03:13 -0500
- changeset 1179
- b0a0ba3240b5
- parent 756
-
8bc91181db9d
- permissions
- -rwxr-xr-x
No LSP autostart when read-only
I think nvim actually threw out 'view' argc detection, I just use -R and alias
view to it.
#!/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