source: gsdl/trunk/trunk/mg/man/man1/mg_get_merge.1@ 16583

Last change on this file since 16583 was 16583, checked in by davidb, 16 years ago

Undoing change commited in r16582

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1.\"------------------------------------------------------------
2.\" Id - set Rv,revision, and Dt, Date using rcs-Id tag.
3.de Id
4.ds Rv \\$3
5.ds Dt \\$4
6..
7.Id $Id: mg_get_merge.1 16583 2008-07-29 10:20:36Z davidb $
8.\"------------------------------------------------------------
9.TH mg_get_merge 1 \*(Dt CITRI
10.SH NAME
11mg_get_merge \- output source texts for processing
12.SH SYNOPSIS
13.B mg_get_merge
14.I collection-name
15.if n .ti +9n
16[
17.BR \-init " |"
18.BR \-i " |"
19.BR \-text " |"
20.BR \-t " |"
21.BR \-cleanup " |"
22.B \-c
23]
24.SH DESCRIPTION
25This program is the default one used by
26.BR mgmerge (1)
27to generate the source text for new documents to appended to
28an
29.BR mg (1)
30system database.
31Its function is exactly the same as
32.BR mg_get (1)
33except that it generates the
34.I new
35documents to be added to an
36.BR mg (1)
37system database that has already been built using
38.BR mgbuild(1).
39Any program may be used to generate the source
40text for
41.BR mgmerge (1),
42as long as it confirms to the interface specified
43here.
44.SH OPTIONS
45The
46.I collection-name
47must appear before any other option. Only the first option has any
48significance. If no option is specified,
49.B \-text
50is assumed.
51.TP "\w'\fB\-cleanup\fP and \fB\-c\fP'u+2n"
52.BR \-init " and " \-i
53The program is called once with this flag at the start of merging a
54collection.
55.TP
56.BR \-text " and " \-t
57The program is called with this flag multiple times during the
58merging of a collection. The program outputs (on
59.IR stdout )
60the text of the collection.
61.I Documents
62within the collection are separated by ctrl-B's (ASCII code 2).
63.TP
64.BR \-cleanup " and " \-c
65The program is called once with this flag at the completion of
66merging a collection.
67.SH ENVIRONMENT
68.TP "\w'\fBMGDATA\fP'u+2n"
69.SB MGDATA
70If this environment variable exists, then its value is used as the
71default directory where the
72.BR mg (1)
73collection files are. If this variable does not exist, then the
74directory \*(lq\fB.\fP\*(rq is used by default. The command line
75option
76.BI \-d " directory"
77overrides the directory in
78.BR MGDATA .
79.SH "SEE ALSO"
80.na
81.BR mg (1),
82.BR mg_get (1),
83.BR mgbuild (1),
84.BR mgmerge (1),
85.BR mg_text_merge (1),
86.BR mg_invf_merge (1).
Note: See TracBrowser for help on using the repository browser.