diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 15:32:58 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 15:32:58 -0400 |
| commit | 5cb84ec742fd33f78c8022863fadaa8d0d93e176 (patch) | |
| tree | 1a81ca3665e6153923e40db7b0d988f8573ab59c /static/netbsd/tools/prsynops | |
| parent | a59214f344567c037d5776879bcfc5fcc1d4d5f6 (diff) | |
feat: Added NetBSD man pages
Diffstat (limited to 'static/netbsd/tools/prsynops')
| -rwxr-xr-x | static/netbsd/tools/prsynops | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/static/netbsd/tools/prsynops b/static/netbsd/tools/prsynops new file mode 100755 index 00000000..c96e74be --- /dev/null +++ b/static/netbsd/tools/prsynops @@ -0,0 +1,29 @@ +#! /bin/sh +# +# $NetBSD: prsynops,v 1.2 1998/01/09 08:05:12 perry Exp $ +# +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.$$ |
