# standard SGI bindings by Paul Raines (raines@bohr.physics.upenn.edu)
#
# first make a ~/.tkman file by running and quitting TkMan
# via the `Quit' button in the lower right corner.
# Then append this file to the end of ~/.tkman.
#
# You will want to change the man(manTitleList) in ~/.tkman to
# set man(manTitleList) {
#   "User Commands" "System Calls" Subroutines
#   "File Formats" Miscellaneous
#   Games "Special Files" "System Administration" ?
#   Local Old New Public
# }
#
# SGI preformatted man pages need to use 'pcat'


foreach i {g p u} {
   append env(MANPATH) ":/usr/catman/${i}_man"
}
append env(MANPATH) ":/usr/catman/local"

manDescAdd 8 /usr/catman/a_man/cat1
manDescAdd 7 /usr/catman/a_man/cat7

manDescAddSects {{1X "User Commands (X11)"}} after 1
manDescAdd 1X /usr/catman/u_man/cat1/X11
manDescAddSects {{1Xm "User Commands (Xm)"}} after 1X
manDescAdd 1Xm /usr/catman/u_man/cat1/Xm
manDescAddSects {{1a "User Commands (audio)"}} after 1Xm
manDescAdd 1a {/usr/catman/u_man/cat1/audio /usr/catman/p_man/cat1/audio}

manDescAdd 2 /usr/catman/p_man/cat2/standard
manDescAddSects {{2f "System Calls (ftn)"}} after 2
manDescAdd 2f /usr/catman/p_man/cat2/ftn

manDescAddSects {{3X "Subroutines (X11)"}} after 3
manDescAdd 3X /usr/catman/p_man/cat3/X
manDescAddSects {{3Xt "Subroutines (Xt)"}} after 3X
manDescAdd 3Xt /usr/catman/p_man/cat3/Xt
manDescAddSects {{3Xm "Subroutines (Xm)"}} after 3Xt
manDescAdd 3Xm /usr/catman/p_man/cat3/Xm
manDescAddSects {{3Xi "Subroutines (Xirisw)"}} after 3Xm
manDescAdd 3Xi /usr/catman/p_man/cat3/Xirisw
manDescAddSects {{3f "Subroutines (ftn)"}} after 3Xi
manDescAdd 3f {/usr/catman/p_man/cat3/ftn /usr/catman/g_man/cat3/ftn}
manDescAddSects {{3l "Subroutines (libblas)"}} after 3f
manDescAdd 3l /usr/catman/p_man/cat3/libblas
manDescAddSects {{3a "Subroutines (audio)"}} after 3l
manDescAdd 3a /usr/catman/p_man/cat3/audio
manDescAddSects {{3n "Subroutines (nonstandard)"}} after 3a
manDescAdd 3n /usr/catman/p_man/cat3/nonstandard

manDescAdd 3 {/usr/catman/g_man/cat3/standard /usr/catman/p_man/cat3/standard}
