|
1 |
| -roff2htm_rcsid='$MirOS: src/scripts/roff2htm,v 1.101 2020/05/03 18:46:23 tg Exp $' |
| 1 | +roff2htm_rcsid='$MirOS: src/scripts/roff2htm,v 1.103 2021/01/23 20:24:35 tg Exp $' |
2 | 2 | # $ekkoBSD: catman2html.sh,v 1.2 2004/03/07 03:02:53 stephen Exp $
|
3 | 3 | #-
|
4 | 4 | # Copyright (c) 2004, 2005, 2006, 2007, 2011, 2012, 2014, 2015,
|
5 |
| -# 2016, 2017, 2018, 2020 |
| 5 | +# 2016, 2017, 2018, 2020, 2021 |
6 | 6 |
|
7 | 7 | # Original version for ekkoBSD by:
|
8 | 8 | # Copyright (c) 2004
|
@@ -92,13 +92,16 @@ s/\([0-9A-z][-.,0-9A-z:]*\)-\n\( *\)\([0-9A-z][-.,0-9A-z:]*([1-9][A-z]*)\)\([^
|
92 | 92 | -e 's#</\([biG]\)>\([- -*./:;?@^_~]*\)<\1>#\2#g' \
|
93 | 93 | -e 's#\([- 0-9A-z]\)\([$/_-]*\)\(<[biG]>\)#\1\3\2#g' \
|
94 | 94 | -e 's#\(</[biG]>\)\([$/_-]*\)\([- 0-9A-z]\)#\2\1\3#g' \
|
95 |
| - -e 's#\(</[biG]>\))\([- ,.0-9A-z]\)#)\1\2#g' \ |
96 | 95 | \
|
97 |
| - -e '/^ /s#\([0-9A-z][-.,0-9A-z:]*\)(\(3p\))#<a href="'$roff2htm_rel'man\2/\1.htm">&</a>#g' \ |
98 |
| - -e '/^ /s#\([0-9A-z][-.,0-9A-z:]*\)(\([1-9]\)\(/[/0-9A-Za-z]*\)*)#<a href="'$roff2htm_rel'man\2/\1.htm">&</a>#g' \ |
99 |
| - -e '/^ /s#\([0-9A-z][-.,0-9A-z:]*\)(\([PSU][MS][DM]\))#<a href="'$roff2htm_rel'man\2/\1.htm">&</a>#g' \ |
100 |
| - -e '/^ /s#\([0-9A-z][-.,0-9A-z:]*\)(\(PAPERS\))#<a href="'$roff2htm_rel'man\2/\1.htm">&</a>#g' \ |
101 |
| - -e '/^ /s#\([0-9A-z][-.,0-9A-z:]*\)(GNU)#<a href="'$roff2htm_rel'manINFO/\1.html">&</a>#g' \ |
| 96 | + -e 's#(\(3p\)#(<|\1|>#g' \ |
| 97 | + -e 's#(\([1-9]\)#(<|\1|>#g' \ |
| 98 | + -e 's#(\([PSUG][MSN][DMU]\)#(<|\1|>#g' \ |
| 99 | + -e 's#(\(PAPERS\)#(<|\1|>#g' \ |
| 100 | + -e 's#\(|>\)\(</[biG]>\))\([- ,.0-9A-z]\)#\1)\2\3#g' \ |
| 101 | + \ |
| 102 | + -e '/^ /s#\([0-9A-z][-.,0-9A-z:]*\)(<|\([^|]*\)|>)#<a href="'$roff2htm_rel'man\2/\1.htm">&</a>#g' \ |
| 103 | + -e 's#\("\.\./man\)GNU\(/[^"]*\.htm\)"#\1INFO\2l"#g' \ |
| 104 | + -e 's#<|\([^|]*\)|>#\1#g' \ |
102 | 105 | -e 's#)\(</[biG]>\)\([- 0-9A-z]\)#\1)\2#g' \
|
103 | 106 | \
|
104 | 107 | -e 's/�/\&/g' \
|
@@ -142,13 +145,16 @@ s/\([0-9A-z][-.,0-9A-z:]*\)-\n\( *\)\([0-9A-z][-.,0-9A-z:]*([1-9][A-z]*)\)\([^
|
142 | 145 | -e 's#</\([biG]\)>\([- -*./:;?@^_~]*\)<\1>#\2#g' \
|
143 | 146 | -e 's#\([- 0-9A-z]\)\([$/_-]*\)\(<[biG]>\)#\1\3\2#g' \
|
144 | 147 | -e 's#\(</[biG]>\)\([$/_-]*\)\([- 0-9A-z]\)#\2\1\3#g' \
|
145 |
| - -e 's#\(</[biG]>\))\([- ,.0-9A-z]\)#)\1\2#g' \ |
146 | 148 | \
|
147 |
| - -e '/^ /s#\([0-9A-z][-.,0-9A-z:]*\)(\(3p\))#<a href="'$roff2htm_rel'man\2/\1.htm">&</a>#g' \ |
148 |
| - -e '/^ /s#\([0-9A-z][-.,0-9A-z:]*\)(\([1-9]\)\(/[/0-9A-Za-z]*\)*)#<a href="'$roff2htm_rel'man\2/\1.htm">&</a>#g' \ |
149 |
| - -e '/^ /s#\([0-9A-z][-.,0-9A-z:]*\)(\([PSU][MS][DM]\))#<a href="'$roff2htm_rel'man\2/\1.htm">&</a>#g' \ |
150 |
| - -e '/^ /s#\([0-9A-z][-.,0-9A-z:]*\)(\(PAPERS\))#<a href="'$roff2htm_rel'man\2/\1.htm">&</a>#g' \ |
151 |
| - -e '/^ /s#\([0-9A-z][-.,0-9A-z:]*\)(GNU)#<a href="'$roff2htm_rel'manINFO/\1.html">&</a>#g' \ |
| 149 | + -e 's#(\(3p\)#(<|\1|>#g' \ |
| 150 | + -e 's#(\([1-9]\)#(<|\1|>#g' \ |
| 151 | + -e 's#(\([PSUG][MSN][DMU]\)#(<|\1|>#g' \ |
| 152 | + -e 's#(\(PAPERS\)#(<|\1|>#g' \ |
| 153 | + -e 's#\(|>\)\(</[biG]>\))\([- ,.0-9A-z]\)#\1)\2\3#g' \ |
| 154 | + \ |
| 155 | + -e '/^ /s#\([0-9A-z][-.,0-9A-z:]*\)(<|\([^|]*\)|>)#<a href="'$roff2htm_rel'man\2/\1.htm">&</a>#g' \ |
| 156 | + -e 's#\("\.\./man\)GNU\(/[^"]*\.htm\)"#\1INFO\2l"#g' \ |
| 157 | + -e 's#<|\([^|]*\)|>#\1#g' \ |
152 | 158 | -e 's#)\(</[biG]>\)\([- 0-9A-z]\)#\1)\2#g' \
|
153 | 159 | \
|
154 | 160 | -e 's/�/\&/g' \
|
@@ -284,7 +290,7 @@ function output_footer {
|
284 | 290 | href="'$roff2htm_rel'man7/BSD-Licence.htm">copyrighted</a> by their
|
285 | 291 | respective writers; their sources are available at the project’s <a
|
286 | 292 | href="http://cvs.mirbsd.de/">CVSweb</a>, AnonCVS and other mirrors. The rest
|
287 |
| - is Copyright © 2002–2020 <a href="http://www.mirbsd.org/">MirBSD</a>.</p> |
| 293 | + is Copyright © 2002–2021 <a href="http://www.mirbsd.org/">MirBSD</a>.</p> |
288 | 294 | <p class="footer3">This manual page’s HTML representation is supposed to be <a
|
289 | 295 | href="http://validator.w3.org/check/referer">valid XHTML/1.1</a>; if not,
|
290 | 296 | please send a bug report — diffs preferred.</p>
|
|
0 commit comments