1MTNOPT(1)                          monotone                          MTNOPT(1)
2
3
4

NAME

6       mtnopt - generate shell variables from monotone workspace options
7

SYNOPSIS

9       mtnopt [-s|-c|-v] [-d dir] [-k keys]
10       mtnopt -h
11

DESCRIPTION

13       mtnopt  prints shell variable assignments for each value in the file of
14       monotone workspace options, _MTN/options, in the current directory. For
15       instance, if _MTN/options contained this text:
16
17              database "/home/user/src/monotone.mtn"
18                branch "net.venge.monotone"
19                keydir "/home/user/.monotone/keys"
20
21       mtnopt would print:
22
23              MTN_database="/home/user/src/monotone.mtn";
24              MTN_branch="net.venge.monotone";
25              MTN_keydir="/home/user/.monotone/keys";
26
27       By  default, mtnopt attempts to guess appropriate syntax from the value
28       of the SHELL environment variable.  This can be overridden with the  -s
29       and -c command‐line options.
30

OPTIONS

32       -s     Print variable assignments in sh(1) syntax.
33
34       -c     Print variable assignments in csh(1) syntax.
35
36       -v     Print  only  the values, with no indication of the corresponding
37              option keys.
38
39       -d directory
40              Look for _MTN/options in directory, rather than in  the  current
41              directory.
42
43       -k keys
44              Print assignments for only those options that match the egrep(1)
45              regular expression keys.
46
47       -h     Print a help message and exit.
48

BUGS

50       mtnopt only looks in the current directory for the _MTN  directory,  so
51       it will fail in a subdirectory of a workspace.
52
53       mtnopt  should  be  aware  of  the set of possible options, rather than
54       blindly printing whatever is in _MTN/options.
55
56       The behavior when there is no _MTN/options file to  be  found  is  less
57       than helpful.
58

SEE ALSO

60       mtn(1), egrep(1), sh(1), csh(1)
61
62
63
64monotone                          2011-02-22                         MTNOPT(1)
Impressum