mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-28 05:55:27 +01:00
27 lines
447 B
Bash
Executable File
27 lines
447 B
Bash
Executable File
#! /bin/sh
|
|
set x $*
|
|
. ./.param
|
|
|
|
for dir in $DIRLST
|
|
do
|
|
date > $TMPDIR/synops$dir
|
|
echo >> $TMPDIR/synops$dir
|
|
cd $MANDIR/man$dir
|
|
for file in $FILLST
|
|
do
|
|
so=`line < $file | sed "s/ .*//"`
|
|
if test "$so" = ".so"
|
|
then
|
|
continue
|
|
fi
|
|
nroff -man $file > $TMPDIR/tmp.$$
|
|
echo "$file:" >> $TMPDIR/synops$dir
|
|
ed - $TMPDIR/tmp.$$ >> $TMPDIR/synops$dir <<!
|
|
/SYNOPSIS/;+,/^ [A-Z][A-Z][A-Z][A-Z]/-p
|
|
q
|
|
!
|
|
done
|
|
done
|
|
|
|
rm -f $TMPDIR/tmp.$$
|