Table of Contents NAME mg_get_merge - output source texts for processing SYNOPSIS ...
Table of Contents

NAME

mg_get_merge - output source texts for processing

SYNOPSIS

mg_get_merge collection-name
[ -init | -i | -text | -t | -cleanup | -c ]

DESCRIPTION

This program is the default one used by mgmerge(1) to generate the source text for new documents to appended to an mg(1) system database. Its function is exactly the same as mg_get(1) except that it generates the new documents to be added to an mg(1) system database that has already been built using mgbuild(1). Any program may be used to generate the source text for mgmerge(1), as long as it confirms to the interface specified here.

OPTIONS

The collection-name must appear before any other option. Only the first option has any significance. If no option is specified, -text is assumed.

-init and -i
The program is called once with this flag at the start of merging a collection.

-text and -t
The program is called with this flag multiple times during the merging of a collection. The program outputs (on stdout) the text of the collection. Documents within the collection are separated by ctrl-B's (ASCII code 2).

-cleanup and -c
The program is called once with this flag at the completion of merging a collection.

ENVIRONMENT

MGDATA If this environment variable exists, then its value is used as the default directory where the mg(1) collection files are. If this variable does not exist, then the directory "." is used by default. The command line option -d directory overrides the directory in MGDATA.

SEE ALSO

mg(1), mg_get(1), mgbuild(1), mgmerge(1), mg_text_merge(1), mg_invf_merge(1).


Table of Contents