NetBSD/share/man/tools/prnames
1998-01-09 08:03:16 +00:00

26 lines
370 B
Bash
Executable File

#! /bin/sh
#
# $NetBSD: prnames,v 1.2 1998/01/09 08:05:10 perry Exp $
#
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/ .*//"`
if test "$so" = ".so"
then
continue
fi
ed - $file >> $TMPDIR/names$dir <<!
/^.SH NAME/+
q
!
done
done