2 # make symlinks to alternate names for manpages
4 PATH=/bin:/usr/bin ; export PATH
5 usage="$0 mandir manpage ..."
9 echo "$0: directory \`$1' does not exist, aborting" >&2
13 echo "$0: cannot cd \`$1', aborting" >&2
22 echo "$0: cannot find \`$m'" >&2
25 suf=$(expr $m : '.*\([.][^.][^.]*\)$')
28 them=$(awk '/^\.\\"\+[ ]/ { for (i = 2; i <= NF; i++) print $i }' $m)
30 # otherwise, try to intuit the list of names from the NAME section
31 if test " $them" = " "
33 them=$( awk '/^\.SH[ \t]+NAME/,/^\.SH[ \t]+[^N]/' $m |
34 egrep -v '^\.' | tr ' ,' ' ' |
35 sed -n '/ *\\*- *.*/s///p' | tr -s ' ' '\012' |
43 ipsec*) ff="$f" ;; # ipsec.8, ipsec.conf.5, etc.
50 if test " $ff" != " $m"