mirror of
https://github.com/bobbimanners/emailler.git
synced 2024-09-12 18:54:27 +00:00
12 lines
328 B
Ruby
12 lines
328 B
Ruby
errors="<table><tr><th>ERROR CODE</th><th>DESCRIPTION</th></tr>\n"
|
|
IO.readlines("netboot65/inc/nb65_constants.i").each do |line|
|
|
if line=~/NB65_ERROR_(\S*).*(\$\S\S)/ then
|
|
code=$2
|
|
description=$1.gsub("_"," ")
|
|
errors<<"<tr><td>#{code}</td><td>#{description}</td></tr>\n"
|
|
end
|
|
end
|
|
errors<<"</table>\n"
|
|
puts errors
|
|
|