unpoller_unpoller/integrations/inputunifi/script/build_manpages.sh

14 lines
451 B
Bash
Executable File

#!/bin/bash
OUTPUT=$1
# This requires the installation of `ronn`: sudo gem install ronn
for f in cmd/*/README.md;do
# Strtip off cmd/ then strip off README to get the man-file name.
PKGNOCMD="${f#cmd/}"
PKG="${PKGNOCMD%/README.md}"
echo "Creating Man Page: ${f} -> ${OUTPUT}${PKG}.1.gz"
echo "If this produces an error. Install ronn; something like: sudo gem install ronn"
ronn < "$f" | gzip -9 > "${OUTPUT}${PKG}.1.gz"
done