blob: da4fa6a12ac30c895ea88a8f846d5a235b0ebf08 [file] [log] [blame] [raw]
for FILE in $*; do
NAME=$(echo $FILE | sed 's/\.\([0-9]\)$/ (\1)/')
HDR=$(grep -A1 '^\.SH NAME$' $FILE | tail -1 | \
sed 's/^.*\\- //' | sed 's/\.$//')
echo "|-"
echo "|| [[/$FILE/|$NAME]]"
echo "|| $HDR"
done