$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: Lawrence_at_[hidden]
Date: 2007-12-08 14:12:29
Author: crowl
Date: 2007-12-08 14:12:29 EST (Sat, 08 Dec 2007)
New Revision: 41906
URL: http://svn.boost.org/trac/boost/changeset/41906
Log:
Initial audit script.
Added:
   sandbox/committee/LWG/audit.sh   (contents, props changed)
Added: sandbox/committee/LWG/audit.sh
==============================================================================
--- (empty file)
+++ sandbox/committee/LWG/audit.sh	2007-12-08 14:12:29 EST (Sat, 08 Dec 2007)
@@ -0,0 +1,187 @@
+
+echo
+echo "==== sections"
+sed -e '
+	/<h[1-6]>/			! d
+	/^<h\([1-6]\)>.*<\/h\1>$/	d
+' thread_library.html
+
+echo
+echo "==== paragraph head"
+sed -e '
+	/<p>/		! d
+	/^<p>$/		d
+' thread_library.html
+
+echo
+echo "==== paragraph tail"
+sed -e '
+	/<\/p>/		! d
+	/^<\/p>$/	d
+' thread_library.html
+
+echo
+echo "==== block head"
+sed -e '
+	/<dd>/		! d
+	/^<dd>$/	d
+' thread_library.html
+sed -e '
+	/<blockquote>/		! d
+	/^<blockquote>$/	d
+' thread_library.html
+
+echo
+echo "==== block tail"
+sed -e '
+	/<\/dd>/	! d
+	/^<\/dd>$/	d
+' thread_library.html
+sed -e '
+	/<\/blockquote>/	! d
+	/^<\/blockquote>$/	d
+' thread_library.html
+
+echo
+echo "==== example, footnote, and note head"
+sed -e '
+	/Editor:/		! d
+	/^\[<i>Editor:<\/i>$/	d
+' thread_library.html
+sed -e '
+	/Example:/		! d
+	/^\[<i>Example:<\/i>$/	d
+' thread_library.html
+sed -e '
+	/Footnote:/		! d
+	/^\[<i>Footnote:<\/i>$/	d
+' thread_library.html
+sed -e '
+	/Note:/			! d
+	/^\[<i>Note:<\/i>$/	d
+' thread_library.html
+
+echo
+echo "==== example, footnote, and note tail"
+sed -e '
+	/end editor/				! d
+	/—<i>end editor<\/i>\]$/		d
+' thread_library.html
+sed -e '
+	/end example/				! d
+	/—<i>end example<\/i>\]$/		d
+' thread_library.html
+sed -e '
+	/end footnote/				! d
+	/—<i>end footnote<\/i>\]$/	d
+' thread_library.html
+sed -e '
+	/end note/				! d
+	/—<i>end note<\/i>\]$/		d
+' thread_library.html
+
+echo
+echo "==== pre head"
+sed -e '
+	/<pre>/		! d
+	/^<pre><code>$/	d
+' thread_library.html
+
+echo
+echo "==== pre tail"
+sed -e '
+	/<\/pre>/		! d
+	/^<\/code><\/pre>$/	d
+' thread_library.html
+
+sed -e '
+	/\[[^[]*\]/		! d
+	/^<h[1-6]>/		d
+	/^<br>/			d
+	/^<b>/			d
+	/(\[[^[]*\])/		d
+	/See \[thread.native\]/	d
+	/\[alg.sorting\]/	d
+	/\[class\])/		d
+	/\[time\]/		d
+' thread_library.html
+
+echo
+echo "==== no break space"
+sed -e '
+	/ /		! d
+	/^<br>.*href="#/	d
+	/mailto:/		d
+	/<h2>/			d
+	/<td> <\/td>/	d
+	/<th> <\/th>/	d
+' thread_library.html
+
+echo
+echo "==== space at end of line"
+sed -e '
+	/ $/	! d
+' thread_library.html
+
+echo
+echo "==== two sentence on one line"
+sed -e '
+	/\. /		! d
+	/\. args/	d
+' thread_library.html
+
+echo
+echo "==== double dash"
+sed -e '
+	/--/		! d
+' thread_library.html
+
+echo
+echo "==== span"
+sed -e '
+	/<span/		! d
+' thread_library.html
+
+echo
+echo "==== italic"
+sed -e '
+	/<i>/					! d
+	/^\[<i>Note:<\/i>$/			d
+	/^—<i>end note<\/i>]$/		d
+	/^\[<i>Footnote:<\/i>$/			d
+	/^—<i>end footnote<\/i>]$/	d
+	/^\[<i>Example:<\/i>$/			d
+	/^—<i>end example<\/i>]$/		d
+	/^\[<i>Editor:<\/i>$/			d
+	/^—<i>end editor<\/i>]$/		d
+' thread_library.html
+
+echo
+echo "==== bold"
+sed -e '
+	/<b>/		! d
+' thread_library.html
+
+echo
+echo "==== long code lines"
+sed -e '
+	1,/<pre>/		d
+	/<\/pre>/,/<pre>/	d
+	/.\{81,\}/		! d
+				s/</</g
+				s/>/>/g
+				s/&/\&/g
+				s/<[a-z]*>//g
+				s/<\/[a-z]*>//g
+	/.\{81,\}/		! d
+' thread_library.html
+
+echo
+echo "==== long non-code lines"
+sed -e '
+	/<pre>/,/<\/pre>/	d
+	/.\{81,\}/		! d
+	/^<br>/			d
+	/^<h[1-6]>/		d
+' thread_library.html
+