monotone on Debian

monotone on Debian Mtn Source Tree

Root/mtnopt.1

1.TH MTNOPT 1 2009-02-13 monotone monotone
2.SH NAME
3mtnopt \- generate shell variables from monotone workspace options
4.SH SYNOPSIS
5.B mtnopt
6.RB [\| \-s \||\| \-c \||\| \-v \|]
7.RB [\| \-d
8.IR dir \|]
9.RB [\| \-k
10.IR keys \|]
11.br
12.B mtnopt -h
13.br
14.SH DESCRIPTION
15.B mtnopt
16prints shell variable assignments for each value in the file of
17monotone workspace options,
18.IR _MTN/options ,
19in the current directory. For instance, if
20.I _MTN/options
21contained this text:
22.IP
23\f(CWdatabase "/home/user/src/monotone.mtn"\fP
24.br
25\f(CW branch "net.venge.monotone"\fP
26.br
27\f(CW keydir "/home/user/.monotone/keys"\fP
28.PP
29.B mtnopt
30would print:
31.IP
32\f(CWMTN_database="/home/user/src/monotone.mtn";\fP
33.br
34\f(CWMTN_branch="net.venge.monotone";\fP
35.br
36\f(CWMTN_keydir="/home/user/.monotone/keys";\fP
37.PP
38By default,
39.B mtnopt
40attempts to guess appropriate syntax from the value of the
41.B SHELL
42environment variable. This can be overridden with the
43.B \-s
44and
45.B \-c
46command\(hyline options.
47.SH OPTIONS
48.TP
49.B \-s
50Print variable assignments in
51.BR sh (1)
52syntax.
53.TP
54.B \-c
55Print variable assignments in
56.BR csh (1)
57syntax.
58.TP
59.B \-v
60Print only the values, with no indication of the corresponding option keys.
61.TP
62.BI \-d\ directory
63Look for
64.I _MTN/options
65in
66.IR directory ,
67rather than in the current directory.
68.TP
69.BI \-k\ keys
70Print assignments for only those options that match the
71.BR egrep (1)
72regular expression
73.IR keys .
74.TP
75.B \-h
76Print a help message and exit.
77.SH BUGS
78.B mtnopt
79only looks in the current directory for the
80.I _MTN
81directory, so it will fail in a subdirectory of a workspace.
82.PP
83.B mtnopt
84should be aware of the set of possible options, rather than blindly
85printing whatever is in
86.IR _MTN/options .
87.PP
88The behavior when there is no
89.I _MTN/options
90file to be found is less than helpful.
91.SH SEE ALSO
92.BR mtn (1),
93.BR egrep (1),
94.BR sh (1),
95.BR csh (1)

Archive Download this file

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status