Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2005-05

index to all RTL procedures and functions

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bob Barry

The following script generates an index to all RTL procedures and functions. As a newbie to fpc I find this useful. Sorry - the index is html, and is derived from html, which is NOT the right way to do it, but I don't know latex. The RTL toc should be modified to include this index if it is found useful.

========================
#!/bin/ksh

(( $# > 0 )) && {
echo
echo "${0##*/}: create index of FPC RTL procedures and functions" echo
exit
}

[[ $(id -u) != 0 ]] && {
echo
echo "must be root"
echo
exit
}

rm -f /usr/local/share/doc/fpdocs-2.0.0/rtl/rtl_pf_index.html

for f in /usr/local/share/doc/fpdocs-2.0.0/rtl/*/index-5.html do
[[ -f $f ]] && cat $f
done |
sed '{
s/h1>/h2>/g
s/\(href="\)..\//\1/
/Overview\|#rtl/d
/<h2>Ref/{
s/Reference for //
s/: P/ p/
}
/^<table cellpad/,/^<\/table/d
/^<\/body/,/^<body/d
/^<body>/a\
<h1>Index to RTL Procedures and Functions<\h1>
}' |
sed '$a\
</body>\
</html>
' > /usr/local/share/doc/fpdocs-2.0.0/rtl/rtl_pf_index.html

========================