# Format DLPL files into html - Copyright 2006 MJ Ray # - use to copy, modify, distribute and/or anything else permitted # Original file format has YYYY-MM on line 1 then # package names then space : space then comments # URLs and Bug#s are hyperlinked, ''bold'' too # blank lines between comments and next package(s) # 1{;H;s/.*/DLPL &<\/title><\/head><body><h1>debian-legal Package List for &<\/h1>/;n;} 2{;g;s|\([0-9]*\)-\([0-9]*\)|<p><a href="http://lists.debian.org/debian-legal/\1/\2/">List archive</a></p><dl><dt>|;n;} $a\ </dd></dl>\ <p><a href="http://lists.debian.org/debian-legal/">debian-legal</a>\ indexed by <a href="./">MJR</a></p>\ </body></html> s/'''\(.*\)'''/<em>\1<\/em>/g s/''\(.*\)''/<b>\1<\/b>/g $s/^$/ / 2!s/^$/<\/p><\/dd><dt>/ s/[^ ]*:\/*\([^\/ ]*\)\/[^ ]*/<a href="&">\1...<\/a>/g / : /s|^\([^<][^ ]*\)|<a href="http://packages.debian.org/\1">\1</a> | s/ : /<\/dt><dd><p>\n/ s|Bug *#*\([0-9]*\)|<a href="http://bugs.debian.org/\1">&</a>|g