aboutsummaryrefslogtreecommitdiff
blob: 40db94c6ab26bb7ce8caa4e51ae2ada205675048 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# About

**metagen** is a command line utility to ease generation of
[`metadata.xml` files](https://devmanual.gentoo.org/ebuild-writing/misc-files/metadata/index.html)
for Gentoo packages.
It is licensed under the
[GPL v2 license](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)
and hosted at
[gitweb.gentoo.org](https://gitweb.gentoo.org/proj/metagen.git/).
Please use [Gentoo's Bugzilla](https://bugs.gentoo.org/)
to report bugs about **metagen**.


# Example

```
# metagen -e 'somebody@gentoo.org' -n 'Some Body' -t person -f -q
./metadata.xml written

# cat metadata.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'>
<pkgmetadata>
        <maintainer type="person">
                <email>somebody@gentoo.org</email>
                <name>Some Body</name>
        </maintainer>
</pkgmetadata>
```


# Usage

```
# COLUMNS=80 metagen --help
usage: metagen [-h] [--version] [--email EMAIL] [--name NAME] [--echangelog]
               [--desc DESC] [--type TYPE] [--long LONG] [--output OUTPUT]
               [--force] [--verbose] [--quiet] [-Q]

options:
  -h, --help            show this help message and exit
  --version             show program's version number and exit

maintainer arguments:
  --email EMAIL, -e EMAIL
                        Maintainer's email address
  --name NAME, -n NAME  Maintainer's name
  --echangelog, -m      Use name and email address from ECHANGELOG_USER
                        environmental variable. This is a shortcut for -e
                        <email> -n <name>
  --desc DESC, -d DESC  Description of maintainership
  --type TYPE, -t TYPE  Maintainer type as of GLEP 67; valid values are:
                        "person", "project", "unknown"

package arguments:
  --long LONG, -l LONG  Long description of package.

operation arguments:
  --output OUTPUT, -o OUTPUT
                        Specify location of output file.
  --force, -f           Force overwrite of existing metadata.
  --verbose, -v         Verbose. Output of file to stdout. (default)
  --quiet, -q           Squelch output of file to stdout.
  -Q                    Do not write file to disk.
```