~ubuntu-branches/ubuntu/quantal/protobuf/quantal

« back to all changes in this revision

Viewing changes to debian/protoc.xml

  • Committer: Bazaar Package Importer
  • Author(s): Iustin Pop
  • Date: 2008-08-03 11:01:44 UTC
  • Revision ID: james.westby@ubuntu.com-20080803110144-x0g8ptvn2zrjtkmd
Tags: 2.0.0~b-3
Remove DM-Upload-Allowed for sponsoring

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version='1.0' encoding='UTF-8'?>
 
2
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
 
3
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
 
4
 
 
5
<!--
 
6
 
 
7
`xsltproc -nonet \
 
8
          -param man.charmap.use.subset "0" \
 
9
          -param make.year.ranges "1" \
 
10
          -param make.single.year.ranges "1" \
 
11
          /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
 
12
          manpage.xml'
 
13
 
 
14
A manual page <package>.<section> will be generated. You may view the
 
15
manual page with: nroff -man <package>.<section> | less'. A typical entry
 
16
in a Makefile or Makefile.am is:
 
17
 
 
18
DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
 
19
XP     = xsltproc -nonet -param man.charmap.use.subset "0"
 
20
 
 
21
manpage.1: manpage.xml
 
22
        $(XP) $(DB2MAN) $<
 
23
 
 
24
The xsltproc binary is found in the xsltproc package. The XSL files are in
 
25
docbook-xsl. A description of the parameters you can use can be found in the
 
26
docbook-xsl-doc-* packages. Please remember that if you create the nroff
 
27
version in one of the debian/rules file targets (such as build), you will need
 
28
to include xsltproc and docbook-xsl in your Build-Depends control field.
 
29
Alternatively use the xmlto command/package. That will also automatically
 
30
pull in xsltproc and docbook-xsl.
 
31
 
 
32
Notes for using docbook2x: docbook2x-man does not automatically create the
 
33
AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as
 
34
<refsect1> ... </refsect1>.
 
35
 
 
36
To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections
 
37
read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be
 
38
found in the docbook-xsl-doc-html package.
 
39
 
 
40
Validation can be done using: `xmllint -noout -valid manpage.xml`
 
41
 
 
42
General documentation about man-pages and man-page-formatting:
 
43
man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/
 
44
 
 
45
-->
 
46
 
 
47
  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
 
48
  <!ENTITY dhfirstname "Iustin">
 
49
  <!ENTITY dhsurname   "Pop">
 
50
  <!-- dhusername could also be set to "&firstname; &surname;". -->
 
51
  <!ENTITY dhusername  "&dhfirstname; &dhsurname;">
 
52
  <!ENTITY dhemail     "iusty@k1024.org">
 
53
  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
 
54
       allowed: see man(7), man(1) and
 
55
       http://www.tldp.org/HOWTO/Man-Page/q2.html. -->
 
56
  <!ENTITY dhsection   "1">
 
57
  <!-- TITLE should be something like "User commands" or similar (see
 
58
       http://www.tldp.org/HOWTO/Man-Page/q2.html). -->
 
59
  <!ENTITY dhtitle     "protocol buffer compiler">
 
60
  <!ENTITY dhucpackage "protobuf">
 
61
  <!ENTITY dhpackage   "protoc">
 
62
]>
 
63
 
 
64
<refentry>
 
65
  <refentryinfo>
 
66
    <title>&dhtitle;</title>
 
67
    <productname>&dhucpackage;</productname>
 
68
    <authorgroup>
 
69
      <author>
 
70
       <firstname>&dhfirstname;</firstname>
 
71
        <surname>&dhsurname;</surname>
 
72
        <contrib>Wrote this manpage for the Debian system.</contrib>
 
73
        <address>
 
74
          <email>&dhemail;</email>
 
75
        </address>
 
76
      </author>
 
77
    </authorgroup>
 
78
    <copyright>
 
79
      <year>2007</year>
 
80
      <holder>&dhusername;</holder>
 
81
    </copyright>
 
82
    <legalnotice>
 
83
      <para>This manual page was written for the Debian system
 
84
        (but may be used by others).</para>
 
85
      <para>Permission is granted to copy, distribute and/or modify this
 
86
        document under the terms of the GNU General Public License,
 
87
        Version 2 or (at your option) any later version published by
 
88
        the Free Software Foundation.</para>
 
89
      <para>On Debian systems, the complete text of the GNU General Public
 
90
        License can be found in
 
91
        <filename>/usr/share/common-licenses/GPL</filename>.</para>
 
92
    </legalnotice>
 
93
    <date>2008-07-10</date>
 
94
  </refentryinfo>
 
95
  <refmeta>
 
96
    <refentrytitle>&dhpackage;</refentrytitle>
 
97
    <manvolnum>&dhsection;</manvolnum>
 
98
    <refmiscinfo class="version">2.0.0beta</refmiscinfo>
 
99
  </refmeta>
 
100
  <refnamediv>
 
101
    <refname>&dhpackage;</refname>
 
102
    <refpurpose>compile protocol buffer description files</refpurpose>
 
103
  </refnamediv>
 
104
  <refsynopsisdiv>
 
105
    <cmdsynopsis>
 
106
      <command>&dhpackage;</command>
 
107
      <!-- These are several examples, how syntaxes could look -->
 
108
      <arg choice="opt"><option>--cpp_out=<replaceable>OUT_DIR</replaceable></option></arg>
 
109
      <arg choice="opt"><option>--java_out=<replaceable>OUT_DIR</replaceable></option></arg>
 
110
      <arg choice="opt"><option>--python_out=<replaceable>OUT_DIR</replaceable></option></arg>
 
111
 
 
112
      <arg choice="opt">
 
113
        <group choice="plain">
 
114
          <arg choice="plain"><option>-I<replaceable>PATH</replaceable></option></arg>
 
115
          <arg choice="plain"><option>--proto-path=<replaceable>PATH</replaceable></option></arg>
 
116
        </group>
 
117
      </arg>
 
118
      <arg choice="plain"><replaceable>PROTO_FILE</replaceable></arg>
 
119
    </cmdsynopsis>
 
120
    <!-- Normally the help and version options make the programs stop
 
121
         right after outputting the requested information. -->
 
122
    <cmdsynopsis>
 
123
      <command>&dhpackage;</command>
 
124
      <group choice="req">
 
125
        <arg choice="plain"><option>-h</option></arg>
 
126
        <arg choice="plain"><option>--help</option></arg>
 
127
      </group>
 
128
    </cmdsynopsis>
 
129
    <cmdsynopsis>
 
130
      <command>&dhpackage;</command>
 
131
      <arg choice="plain"><option>--version</option></arg>
 
132
    </cmdsynopsis>
 
133
  </refsynopsisdiv>
 
134
  <refsect1 id="description">
 
135
    <title>DESCRIPTION</title>
 
136
 
 
137
    <para><command>&dhpackage;</command> is a compiler for protocol
 
138
    buffers definitions files. It can can generate C++, Java and
 
139
    Python source code for the classes defined in
 
140
    <replaceable>PROTO_FILE</replaceable>.</para>
 
141
 
 
142
  </refsect1>
 
143
 
 
144
  <refsect1 id="options">
 
145
    <title>OPTIONS</title>
 
146
    <variablelist>
 
147
      <!-- Use the variablelist.term.separator and the
 
148
           variablelist.term.break.after parameters to
 
149
           control the term elements. -->
 
150
      <varlistentry>
 
151
        <term><option>-I<replaceable>PATH</replaceable></option></term>
 
152
        <term><option>--proto_path=<replaceable>PATH</replaceable></option></term>
 
153
        <listitem>
 
154
          <para>Specify the directory in which to search for imports.
 
155
          May be specified multiple times; directories will be
 
156
          searched in order. If not given, the current working
 
157
          directory is used.</para>
 
158
        </listitem>
 
159
      </varlistentry>
 
160
      <varlistentry>
 
161
        <term><option>--cpp_out=<replaceable>OUT_DIR</replaceable></option></term>
 
162
        <listitem>
 
163
          <simpara>Enable generation of C++ bindings and store them in
 
164
          <replaceable>OUT_DIR</replaceable>.</simpara>
 
165
        </listitem>
 
166
      </varlistentry>
 
167
      <varlistentry>
 
168
        <term><option>--java_out=<replaceable>OUT_DIR</replaceable></option></term>
 
169
        <listitem>
 
170
          <simpara>Enable generation of Java bindings and store them
 
171
          in <replaceable>OUT_DIR</replaceable>.</simpara>
 
172
        </listitem>
 
173
      </varlistentry>
 
174
      <varlistentry>
 
175
        <term><option>--python_out=<replaceable>OUT_DIR</replaceable></option></term>
 
176
        <listitem>
 
177
          <simpara>Enable generation of Python bindings and store them
 
178
          in <replaceable>OUT_DIR</replaceable>.</simpara>
 
179
        </listitem>
 
180
      </varlistentry>
 
181
      <varlistentry>
 
182
        <term><option>-h</option></term>
 
183
        <term><option>--help</option></term>
 
184
        <listitem>
 
185
          <para>Show summary of options.</para>
 
186
        </listitem>
 
187
      </varlistentry>
 
188
      <varlistentry>
 
189
        <term><option>--version</option></term>
 
190
        <listitem>
 
191
          <para>Show version of program.</para>
 
192
        </listitem>
 
193
      </varlistentry>
 
194
    </variablelist>
 
195
 
 
196
    <para>Note that at least one of the <option>--cpp_out</option>,
 
197
    <option>--java_out</option> and <option>--python_out</option>
 
198
    options must be given (otherwise the program has nothing to
 
199
    do). It's also possible to specify more than one.</para>
 
200
 
 
201
  </refsect1>
 
202
  <refsect1 id="bugs">
 
203
    <!-- Or use this section to tell about upstream BTS. -->
 
204
    <title>BUGS</title>
 
205
 
 
206
    <para>The program currently exits with code 255 for all errors,
 
207
    which makes it hard to differentiante from scripts the actual
 
208
    error.</para>
 
209
 
 
210
    <para>The upstreams <acronym>BTS</acronym> can be found at <ulink
 
211
    url="http://code.google.com/p/protobuf/issues/list"/>.</para>
 
212
 
 
213
  </refsect1>
 
214
  <refsect1 id="see_also">
 
215
    <title>SEE ALSO</title>
 
216
 
 
217
    <para>More documentation about protocol buffers syntax and APIs is
 
218
    available online at <ulink
 
219
    url="http://code.google.com/apis/protocolbuffers/docs/overview.html"></ulink>.</para>
 
220
 
 
221
 
 
222
  </refsect1>
 
223
</refentry>