NetBSD-Docs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

adding exclusions for man0/mkman



As I mentioned in earlier email, src/share/man/man0/mkman lists many man 
pages that aren't really installed -- so will generate postscript for 
not used manual pages.

Instead I decide not to use "noman" list as its comment says "troff files 
that are no manpages". So I made a new "exclude" file. See below.

Also why are openldap man pages repeated?

Please share your comments:
(Note at same time I am getting rid of /tmp/ usage.)

Index: mkman
===================================================================
RCS file: /cvsroot/src/share/man/man0/mkman,v
retrieving revision 1.5
diff -u -r1.5 mkman
--- mkman       17 Jan 2007 00:51:25 -0000      1.5
+++ mkman       24 Sep 2008 16:26:15 -0000
@@ -14,20 +14,21 @@
 | grep troff                           \
 | sed 's/:[    ]*.*$//'                \
 | fgrep -v -f noman                    \
+| fgrep -v -f exclude                  \
 | grep -v '#'                          \
 | grep -v '/obj\.'                     \
 | grep -v '/destdir\.'                 \
 | grep -v '/tooldir\.'                 \
->/tmp/mkman.$$
+>tmp.mkman.$$
 
 for i in 1 2 3 4 5 6 7 8 9
 do
        echo Creating man$i
-       grep "${i}\$"   </tmp/mkman.$$          \
+       grep "${i}\$"   <tmp.mkman.$$           \
        | sed 's,\(.*/\)\([^/]*\),\2 \1\2,'     \
        | sort                                  \
        | sed 's/^.* //'                        \
        >man${i}
 done
 
-rm /tmp/mkman.$$
+rm tmp.mkman.$$

And the exclude file only man8 for now. (My earlier email was man1 but I 
didn't do this or check it yet.)

#       $NetBSD$
# man pages that aren't really installed - ready for fgrep -v
/crypto/dist/heimdal/appl/kf/kfd.8
/crypto/dist/heimdal/appl/kx/kxd.8
/crypto/dist/heimdal/appl/popper/popper.8
/crypto/dist/heimdal/appl/push/push.8
/crypto/dist/ipsec-tools/src/racoon/plainrsa-gen.8
/dist/am-utils/scripts/automount2amd.8
/dist/bind/contrib/nslint-2.1a3/nslint.8
/dist/ipf/man/ipscan.8
/dist/iscsi/src/iscsi-harness.8
/dist/wpa/wpa_supplicant/doc/docbook/wpa_background.8
/dist/wpa/wpa_supplicant/doc/docbook/wpa_gui.8
/dist/wpa/wpa_supplicant/doc/docbook/wpa_priv.8
/external/bsd/am-utils/dist/amd/sun2amd.8
/external/bsd/am-utils/dist/scripts/automount2amd.8
/external/bsd/openldap/dist/contrib/slapd-modules/nssov/nss-ldapd/man/nslcd.8
/external/bsd/openldap/dist/doc/man/man8/slapacl.8
/external/bsd/openldap/dist/doc/man/man8/slapadd.8
/external/bsd/openldap/dist/doc/man/man8/slapauth.8
/external/bsd/openldap/dist/doc/man/man8/slapcat.8
/external/bsd/openldap/dist/doc/man/man8/slapd.8
/external/bsd/openldap/dist/doc/man/man8/slapdn.8
/external/bsd/openldap/dist/doc/man/man8/slapindex.8
/external/bsd/openldap/dist/doc/man/man8/slappasswd.8
/external/bsd/openldap/dist/doc/man/man8/slaptest.8
/external/bsd/openldap/man/slapacl.8
/external/bsd/openldap/man/slapadd.8
/external/bsd/openldap/man/slapauth.8
/external/bsd/openldap/man/slapcat.8
/external/bsd/openldap/man/slapd.8
/external/bsd/openldap/man/slapdn.8
/external/bsd/openldap/man/slapindex.8
/external/bsd/openldap/man/slappasswd.8
/external/bsd/openldap/man/slaptest.8
/external/gpl2/libdevmapper/dist/man/dmsetup.8
/external/gpl2/lvm2tools/dist/man/clvmd.8
/external/gpl2/lvm2tools/dist/man/fsadm.8
/external/gpl2/lvm2tools/dist/man/lvchange.8
/external/gpl2/lvm2tools/dist/man/lvconvert.8
/external/gpl2/lvm2tools/dist/man/lvcreate.8
/external/gpl2/lvm2tools/dist/man/lvdisplay.8
/external/gpl2/lvm2tools/dist/man/lvextend.8
/external/gpl2/lvm2tools/dist/man/lvm.8
/external/gpl2/lvm2tools/dist/man/lvmchange.8
/external/gpl2/lvm2tools/dist/man/lvmdiskscan.8
/external/gpl2/lvm2tools/dist/man/lvmdump.8
/external/gpl2/lvm2tools/dist/man/lvreduce.8
/external/gpl2/lvm2tools/dist/man/lvremove.8
/external/gpl2/lvm2tools/dist/man/lvrename.8
/external/gpl2/lvm2tools/dist/man/lvresize.8
/external/gpl2/lvm2tools/dist/man/lvs.8
/external/gpl2/lvm2tools/dist/man/lvscan.8
/external/gpl2/lvm2tools/dist/man/pvchange.8
/external/gpl2/lvm2tools/dist/man/pvck.8
/external/gpl2/lvm2tools/dist/man/pvcreate.8
/external/gpl2/lvm2tools/dist/man/pvdisplay.8
/external/gpl2/lvm2tools/dist/man/pvmove.8
/external/gpl2/lvm2tools/dist/man/pvremove.8
/external/gpl2/lvm2tools/dist/man/pvresize.8
/external/gpl2/lvm2tools/dist/man/pvs.8
/external/gpl2/lvm2tools/dist/man/pvscan.8
/external/gpl2/lvm2tools/dist/man/vgcfgbackup.8
/external/gpl2/lvm2tools/dist/man/vgcfgrestore.8
/external/gpl2/lvm2tools/dist/man/vgchange.8
/external/gpl2/lvm2tools/dist/man/vgck.8
/external/gpl2/lvm2tools/dist/man/vgconvert.8
/external/gpl2/lvm2tools/dist/man/vgcreate.8
/external/gpl2/lvm2tools/dist/man/vgdisplay.8
/external/gpl2/lvm2tools/dist/man/vgexport.8
/external/gpl2/lvm2tools/dist/man/vgextend.8
/external/gpl2/lvm2tools/dist/man/vgimport.8
/external/gpl2/lvm2tools/dist/man/vgmerge.8
/external/gpl2/lvm2tools/dist/man/vgmknodes.8
/external/gpl2/lvm2tools/dist/man/vgreduce.8
/external/gpl2/lvm2tools/dist/man/vgremove.8
/external/gpl2/lvm2tools/dist/man/vgrename.8
/external/gpl2/lvm2tools/dist/man/vgs.8
/external/gpl2/lvm2tools/dist/man/vgscan.8
/external/gpl2/lvm2tools/dist/man/vgsplit.8
/external/gpl2/lvm2tools/dist/scripts/lvm2create_initrd/lvm2create_initrd.8
/gnu/dist/postfix/man/man8/qmqpd.8
/lib/libc/time/tzselect.8
/sbin/chkconfig/chkconfig.8
/sbin/resize_ffs/resize_ffs.8
/share/examples/refuse/dmesgfs/dmesgfs.8
/share/examples/refuse/fanoutfs/fanoutfs.8
/share/examples/refuse/ian/ian/ian.8
/share/examples/refuse/icfs/icfs.8
/share/examples/refuse/id3fs/id3fs.8
/share/examples/refuse/iscsi-initiator/iscsifs.8
/share/examples/refuse/pcifs/pcifs.8
/usr.sbin/fusermount/fusermount.8
/usr.sbin/kvm_mkdb/kvm_mkdb.8
/usr.sbin/lptctl/lptctl.8
/usr.sbin/puffs/mount_9p/mount_9p.8
/usr.sbin/puffs/mount_psshfs/mount_psshfs.8
/usr.sbin/puffs/mount_sysctlfs/mount_sysctlfs.8
/usr.sbin/puffs/rump_cd9660/rump_cd9660.8
/usr.sbin/puffs/rump_efs/rump_efs.8
/usr.sbin/puffs/rump_ext2fs/rump_ext2fs.8
/usr.sbin/puffs/rump_ffs/rump_ffs.8
/usr.sbin/puffs/rump_hfs/rump_hfs.8
/usr.sbin/puffs/rump_lfs/rump_lfs.8
/usr.sbin/puffs/rump_msdos/rump_msdos.8
/usr.sbin/puffs/rump_ntfs/rump_ntfs.8
/usr.sbin/puffs/rump_syspuffs/rump_syspuffs.8
/usr.sbin/puffs/rump_sysvbfs/rump_sysvbfs.8
/usr.sbin/puffs/rump_tmpfs/rump_tmpfs.8
/usr.sbin/puffs/rump_udf/rump_udf.8

  Jeremy C. Reed

p.s. It looks like man0 is built by default (when doing a build from 
/usr/src). I didn't check, but it looks like it. Anyone confirm that?


Home | Main Index | Thread Index | Old Index