.sbinit(5) — FILE FORMATS
NAME
.sbinit — directives to SourceBrowser and compilers
SYNOPSIS
.sbinit
AVAILABILITY
Available with ANSI C and Sun FORTRAN, Pascal, C++, and Assembler
DESCRIPTION
.sbinit is a text file used by SourceBrowser to obtain information about the SourceBrowser database structure. SourceBrowser’s default is to build its database in the current working directory, then search in that database when you issue a query. You should use .sbinit if you want to work with source files whose database information is stored in multiple directories.
USAGE
The .sbinit file is limited to the commands described in this section.
COMMANDS
import
This command reads databases in directories other than the current working directory used by SourceBrowser. The import command has the form
import path
where path is the path to the directory that contains the subdirectory containing the database you want to import.
export
This command writes database component files associated with specified source files to directories other than the current working directory used by SourceBrowser and the compiler. The export command has the form
export prefix into path
Whenever the compiler processes a source file whose absolute path starts with prefix the resulting browser data ( .bd) file will be stored in the database in path . The export command contains an implied import command of path .
split
This command improves performance when working with large programs. The split command has the form
split size
where size is the size in bytes of the database index when the database will be split by SourceBrowser.
automount-prefix
This command specifies the automounter prefixes to remove from source names stored in the database. The automount-prefix command has the form
automount-prefix mount_point trigger_point
where mount_point is the directory under which the automounter mounts the filesystems. The default is /tmp_mnt. trigger_point is the prefix you supply to the pathname to access the exported filesystem. The default is /net.
EXAMPLE
import /project/source2
export /usr/include into /project/sys
split 1000000
automount-prefix /van /gogh
SEE ALSO
sbbuild(1), sbrowser(1), sbquery(1),
Browsing Source Code
Sun Release 4.1 — Last change: 3 March 1992