summaryrefslogtreecommitdiff
path: root/static/netbsd/tools/mroff
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 15:32:58 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 15:32:58 -0400
commit5cb84ec742fd33f78c8022863fadaa8d0d93e176 (patch)
tree1a81ca3665e6153923e40db7b0d988f8573ab59c /static/netbsd/tools/mroff
parenta59214f344567c037d5776879bcfc5fcc1d4d5f6 (diff)
feat: Added NetBSD man pages
Diffstat (limited to 'static/netbsd/tools/mroff')
-rwxr-xr-xstatic/netbsd/tools/mroff26
1 files changed, 26 insertions, 0 deletions
diff --git a/static/netbsd/tools/mroff b/static/netbsd/tools/mroff
new file mode 100755
index 00000000..f2f071fe
--- /dev/null
+++ b/static/netbsd/tools/mroff
@@ -0,0 +1,26 @@
+set x $*
+. ./.param
+
+for dir in $DIRLST
+do
+ date > $TMPDIR/mlog$dir
+ echo >> $TMPDIR/mlog$dir
+ cd $MANDIR/man$dir
+ for file in $FILLST
+ do
+ so=`line < $file | sed "s/ .*//"`
+ if test "$so" = ".so"
+ then
+ echo "$file: .so link -- ignored" >> $TMPDIR/mlog$dir
+ continue
+ fi
+ echo "$file:" >> $TMPDIR/mlog$dir
+ file=`echo $file | sed "s/\..\{1,2\}\$//"`
+ if test -z "$PFLAG"
+ then
+ man -t $dir $file
+ else
+ man -s $dir $file
+ fi
+ done
+done