# File utils.rb, line 317
        def findRdocMain( catalogFile="docs/CATALOG", default="README" )

                # Try extracting it from the CATALOG file from a line that looks like:
                # Main: Foo Bar Module
                main = findCatalogKeyword( 'main', catalogFile )

                # Try to make some educated guesses if that doesn't work
                if main.nil?
                        basedir = File::dirname( __FILE__ )
                        basedir = File::dirname( basedir ) if /docs$/ =~ basedir
                        
                        if File::exists?( File::join(basedir, default) )
                                main = default
                        end
                end

                return main
        end