1992-07-13 20:18:25 +04:00
|
|
|
#! /bin/sh
|
1998-01-09 11:03:16 +03:00
|
|
|
#
|
2003-05-06 14:46:41 +04:00
|
|
|
# $NetBSD: prnames,v 1.3 2003/05/06 10:46:44 jmmv Exp $
|
1998-01-09 11:03:16 +03:00
|
|
|
#
|
1992-07-13 20:18:25 +04:00
|
|
|
set x $*
|
|
|
|
. ./.param
|
|
|
|
|
|
|
|
for dir in $DIRLST
|
|
|
|
do
|
|
|
|
date > $TMPDIR/names$dir
|
|
|
|
echo >> $TMPDIR/names$dir
|
|
|
|
cd $MANDIR/man$dir
|
|
|
|
for file in $FILLST
|
|
|
|
do
|
|
|
|
so=`line < $file | sed "s/ .*//"`
|
2003-05-06 14:46:41 +04:00
|
|
|
if test "$so" = ".so"
|
1992-07-13 20:18:25 +04:00
|
|
|
then
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
ed - $file >> $TMPDIR/names$dir <<!
|
|
|
|
/^.SH NAME/+
|
|
|
|
q
|
|
|
|
!
|
|
|
|
done
|
|
|
|
done
|