mirror of
https://github.com/bobbimanners/emailler.git
synced 2024-08-20 02:29:32 +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
|
||
|
|