Annotation of src/share/me/sh.me, Revision 1.1
1.1 ! deraadt 1: .nr _0 \n(c.
! 2: .\" Copyright (c) 1988 The Regents of the University of California.
! 3: .\" All rights reserved.
! 4: .\"
! 5: .\" Redistribution and use in source and binary forms, with or without
! 6: .\" modification, are permitted provided that the following conditions
! 7: .\" are met:
! 8: .\" 1. Redistributions of source code must retain the above copyright
! 9: .\" notice, this list of conditions and the following disclaimer.
! 10: .\" 2. Redistributions in binary form must reproduce the above copyright
! 11: .\" notice, this list of conditions and the following disclaimer in the
! 12: .\" documentation and/or other materials provided with the distribution.
! 13: .\" 3. All advertising materials mentioning features or use of this software
! 14: .\" must display the following acknowledgement:
! 15: .\" This product includes software developed by the University of
! 16: .\" California, Berkeley and its contributors.
! 17: .\" 4. Neither the name of the University nor the names of its contributors
! 18: .\" may be used to endorse or promote products derived from this software
! 19: .\" without specific prior written permission.
! 20: .\"
! 21: .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
! 22: .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
! 23: .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
! 24: .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
! 25: .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
! 26: .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
! 27: .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
! 28: .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
! 29: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
! 30: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
! 31: .\" SUCH DAMAGE.
! 32: .\"
! 33: .\" @(#)sh.me 5.1 (Berkeley) 4/17/91
! 34: .\"
! 35: .\" %beginstrip%
! 36: .\"
! 37: .de sh \" *** section heading
! 38: .fi
! 39: .if (\\n(si>0)&(\\n(si<1n) \
! 40: . nr si \\n(sin
! 41: .ce 0
! 42: .@d "\\$1" +1 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8
! 43: .if !"\\$2"_" \
! 44: \{\
! 45: . ds |n \&\\$2
! 46: . $p "\\*(|n" "\\*($n" \\n($0
! 47: . $0 "\\*(|n" "\\*($n" \\n($0
! 48: . rm |n
! 49: .\}
! 50: .nr $p 0 1 \" reset .np count
! 51: ..
! 52: .de @d \" --- change section depth
! 53: .if !""\\$1" \
! 54: . nr $0 \\$1
! 55: .if \\n($0&(\\n(.$>1) \
! 56: . nr $\\n($0 \\$2
! 57: .ds $n \&\"
! 58: .ie \\n($0>=1 \
! 59: \{\
! 60: . if '\\n($1'0' \
! 61: . nr $1 1
! 62: . if (\\n(.$>=3) .if !"\\$3"-" \
! 63: . nr $1 \\$3
! 64: . as $n \\n($1
! 65: .\}
! 66: .el \
! 67: . nr $1 0
! 68: .ie \\n($0>=2 \
! 69: \{\
! 70: . if '\\n($2'0' \
! 71: . nr $2 1
! 72: . if (\\n(.$>=4) .if !"\\$4"-" \
! 73: . nr $2 \\$4
! 74: . as $n .\\n($2
! 75: .\}
! 76: .el \
! 77: . nr $2 0
! 78: .ie \\n($0>=3 \
! 79: \{\
! 80: . if '\\n($3'0' \
! 81: . nr $3 1
! 82: . if (\\n(.$>=5) .if !"\\$5"-" \
! 83: . nr $3 \\$5
! 84: . as $n .\\n($3
! 85: .\}
! 86: .el \
! 87: . nr $3 0
! 88: .ie \\n($0>=4 \
! 89: \{\
! 90: . if '\\n($4'0' \
! 91: . nr $4 1
! 92: . if (\\n(.$>=6) .if !"\\$6"-" \
! 93: . nr $4 \\$6
! 94: . as $n .\\n($4
! 95: .\}
! 96: .el \
! 97: . nr $4 0
! 98: .ie \\n($0>=5 \
! 99: \{\
! 100: . if '\\n($5'0' \
! 101: . nr $5 1
! 102: . if (\\n(.$>=7) .if !"\\$7"-" \
! 103: . nr $5 \\$7
! 104: . as $n .\\n($5
! 105: .\}
! 106: .el \
! 107: . nr $5 0
! 108: .ie \\n($0>=6 \
! 109: \{\
! 110: . if '\\n($6'0' \
! 111: . nr $6 1
! 112: . if (\\n(.$>=8) .if !"\\$8"-" \
! 113: . nr $6 \\$8
! 114: . as $n .\\n($6
! 115: .\}
! 116: .el \
! 117: . nr $6 0
! 118: ..
! 119: .de sx \" *** heading up, no increment (2.1.1 -> 2.1)
! 120: .ce 0
! 121: .ul 0
! 122: .nr _0 \\n($0-1
! 123: .if \\n(.$ .nr _0 +1
! 124: .if \\n(.$ .nr _0 \\$1
! 125: .@d \\n(_0
! 126: .rr _0
! 127: .$p "" "" \\n($0
! 128: .nr $p 0 1 \" reset .np count
! 129: ..
! 130: .de uh \" *** unnumbered section heading
! 131: .$p "\\$1"
! 132: .$0 "\\$1"
! 133: ..
! 134: .if \n(sf<=0 \
! 135: . nr sf 8 \" section font -- Times Bold
! 136: .if \n(sp<=0 \
! 137: . nr sp 10 \" section title pointsize
! 138: .if \n(ss<=0 \
! 139: . nr ss 12p \" section prespacing
! 140: .if \n(si<=0 \
! 141: . nr si 0 \" section indent
! 142: .nr c. \n(_0