|
NAMEbg-installer - Standardized installer program.SYNOPSISbg-installer [top-directory] <LISTDESCRIPTIONThe program bg-installer reads an installation instruction file from standard input, and executes the instructions in the directory named on the command line.Each line in the file is an individual instruction. Blank lines and lines beginning with "#" are ignored. Lines beginning with ">", if present, instruct bg-installer as to which base directory to use (see below). All other lines must have following format: CMD:[OWNER]:[GROUP]:MODE:DIR[:FILENAME[:SOURCE]]
If SOURCE contains wildcards, the command is repeated once for each matching filename. If FILENAME is empty, it is replaced with the value of SOURCE after wildcard expansion. Each instance of "$N" in FILENAME where "N" is a single digit is replaced with the Nth part of the source filename. "$0" is replaced with the whole source filename. The target filename is "PREFIX/TOP/DIR/FILENAME" where "PREFIX" is the value of $install_prefix if it is set, TOP is the directory given on the command line, and DIR and FILENAME given in the installation file.
When bg-installer encounters a base directory directive, as indicated above, it opens the file named conf-BASE (where BASE is the word on the directive line), reads the first line, and uses that as the base directory (prefixed by $install_prefix as above). OPTIONS
EXAMPLES>bin c:::755::prog2 c?:root:root:4750::prog2 >include d:::755:package c:::644:package:base.h:pkgbase.h s:::::package.h:package/base.h This reads conf-bin, and installs prog1 and setuid root prog2 (if it was built) under it. It then reads conf-include, creates the directory package under it, and installs pkgbase.h as base.h in that directory. It also creates a symlink package.h to package/base.h. ENVIRONMENT
AUTHORBruce Guenter <bruce@untroubled.org> Visit the GSP FreeBSD Man Page Interface. |