[BACK]Return to domains.sed CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / share / misc

File: [cvs.NetBSD.org] / src / share / misc / domains.sed (download)

Revision 1.2, Sun Mar 2 21:32:33 2003 UTC (15 years, 5 months ago) by jhawk
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, matt-mips64-base, matt-mips64, hpcarm-cleanup, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: matt-armv6
Changes since 1.1: +3 -1 lines

Strip carriage returns in domains.sed, not with tr in Makefile.

# $NetBSD: domains.sed,v 1.2 2003/03/02 21:32:33 jhawk Exp $
:top
#				Strip ^Ms
s/
//g			
# 				Join all lines with unterminated HTML tags
/<[^>]*$/{
	N
	b top
}
#				Replace all <BR> with EOL marker ($)
s/<BR>/$/g			
# 				Join all data lines (containing ">.") not ending in $
/>\..*[^$]$/{
	N
	s/\n//g
	b top
}
s/<[^>]*>//g
#				Remove all HTML tags
s/\$$//	
#				Remove EOL markers
s/&nbsp;/ /g
#				Remove HTML character encodings
s/&#150;//g
s/[ 	][ 	]*/ /g
#	n			Compress spaces/tabs
s/^ //
#				Output metadata to file "top"
/updated/{
  s/.*updated/# Latest change:/
  s/ *$//
  w top
}
#				Delete all non-data lines
/^\./!d
#				Remove leading '.'
s/^\.//