File: crosslink.sh

package info (click to toggle)
libcap2 1%3A2.75-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,068 kB
  • sloc: ansic: 9,181; sh: 1,138; makefile: 812; cpp: 45; asm: 16
file content (15 lines) | stat: -rwxr-xr-x 362 bytes parent folder | download | duplicates (2)
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