.sbinit(4) — DEVICES AND NETWORK INTERFACES
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, the compilers and the scanner 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.
The .sbinit file should be placed in the same directory from where the SourceBrowser, the compilers, and the scanners are run.
USAGE
The .sbinit file is limited to the commands described in this section.
COMMANDS
import
This command causes SourceBrowser to read databases in directories other than the current working directory. 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 causes the compilers and the scanner to write 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 , so that exported database components will automatically be read by the SourceBrowser.
replacepath
This command specifies how to modify path names in the SourcBrowser database. The replacepath command has the form
replacepath from-prefix to-prefix
where from-prefix is the prefix path that will be replaced by to-prefix whenever found.
There is a default replacepath command which is used to strip away automounter artifacts.
replacepath /tmp_mnt /net
In general, when used for this purpose, this command should be given as first argument mount_point and trigger_point as its second argument.
automount-prefix
This command is now identical to the replacepath command.
cleanup-delay
This command limits the time elapsed between index recomputations (and their associated .bd garbage collection). The compilers will automatically invoke sbcleanup(1) if the limit is exceeded. The default value is 12 (hours).
EXAMPLE
import /project/source2
export /usr/include into /project/sys
replacepath /van /gogh
SEE ALSO
sbcleanup(1), sbquery(1), sbrowser(1), sbtags(1).
Browsing Source Code
Sun Release 4.1 — Last change: 05 Apr 1994