"/" then do
html_start = html_start||"/"
end
/* Variables */
current_dir = ""
/* startup */
call rxfuncadd 'SysLoadFuncs','RexxUtil','SysLoadFuncs'
call sysloadfuncs
rc = sysfiledelete(outputfile)
/* Writing the header */
say "Writing Header"
call lineout outputfile, ""
call lineout outputfile, ""
call lineout outputfile, ""
call lineout outputfile, pagetitle
call lineout outputfile, ""
call lineout outputfile, ""
call lineout outputfile, ""
call lineout outputfile, ""||pagetitle||"
"
call lineout outputfile, ""
/* Process */
say "Processing ..."
do while lines(inputfile) > 0
dataline = linein(inputfile)
if length(strip(dataline)) = 0 then do
call lineout outputfile, dataline
end
else do
parse var dataline firstword endline
if pos(":",firstword) = 0 then do
outline = html_start||current_dir||firstword||'">'||firstword||'
'||endline
call lineout outputfile, outline
end /* then do */
else do
call lineout outputfile,dataline
current_dir = left(firstword,pos(":",firstword)-1)||'/'
Say "Processing Directory "||current_dir
end /* else do */
end /* else do */
end
/* Writing the end */
say "Writing Closing"
call lineout outputfile,""
call lineout outputfile,""
call lineout outputfile,""
say "Done"
exit(0)