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