xref: /netbsd-src/share/misc/domains.sed (revision aaf4ece63a859a04e37cf3a7229b5fab0157cc06)
1# $NetBSD: domains.sed,v 1.2 2003/03/02 21:32:33 jhawk Exp $
2:top
3#				Strip ^Ms
4s/
5//g
6# 				Join all lines with unterminated HTML tags
7/<[^>]*$/{
8	N
9	b top
10}
11#				Replace all <BR> with EOL marker ($)
12s/<BR>/$/g
13# 				Join all data lines (containing ">.") not ending in $
14/>\..*[^$]$/{
15	N
16	s/\n//g
17	b top
18}
19s/<[^>]*>//g
20#				Remove all HTML tags
21s/\$$//
22#				Remove EOL markers
23s/&nbsp;/ /g
24#				Remove HTML character encodings
25s/&#150;//g
26s/[ 	][ 	]*/ /g
27#	n			Compress spaces/tabs
28s/^ //
29#				Output metadata to file "top"
30/updated/{
31  s/.*updated/# Latest change:/
32  s/ *$//
33  w top
34}
35#				Delete all non-data lines
36/^\./!d
37#				Remove leading '.'
38s/^\.//
39