xref: /aosp_15_r20/external/libcap/doc/crosslink.sh (revision 2810ac1b38eead2603277920c78344c84ddf3aff)
1#!/bin/bash
2#
3# So many cross links to maintain. Here is a script that I've used to
4# validate things at least conform to some structure:
5#
6for x in *.? ; do
7    y=$(grep -F '.so m' ${x} | awk '{print $2}' | sed -e 's/man..//')
8    if [ -z "${y}" ]; then
9	continue
10    fi
11    echo
12    echo "###########"
13    echo "${x} => ${y}"
14    grep -F "${x%.*}" "${y}"
15done
16