gbp-config.sgml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <refentry id="man.gbp.config">
  2. <refentryinfo>
  3. <address>
  4. &dhemail;
  5. </address>
  6. <author>
  7. &dhfirstname;
  8. &dhsurname;
  9. </author>
  10. </refentryinfo>
  11. <refmeta>
  12. <refentrytitle>gbp-config</refentrytitle>
  13. &dhsection;
  14. </refmeta>
  15. <refnamediv>
  16. <refname>gbp-config</refname>
  17. <refpurpose>Query configuration values</refpurpose>
  18. </refnamediv>
  19. <refsynopsisdiv>
  20. <cmdsynopsis>
  21. &gbp-config;
  22. &man.common.options.synopsis;
  23. <group choice='req'>
  24. <arg choice="plain"><replaceable>command.option</replaceable></arg>
  25. <arg choice="plain"><replaceable>command</replaceable></arg>
  26. </group>
  27. </cmdsynopsis>
  28. </refsynopsisdiv>
  29. <refsect1>
  30. <title>DESCRIPTION</title>
  31. <para>
  32. &gbp-config; prints values from the configuration files. It interpolates the
  33. value for <replaceable>option</replaceable> of
  34. <replaceable>command</replaceable>.
  35. </para>
  36. </refsect1>
  37. <refsect1>
  38. <title>OPTIONS</title>
  39. <variablelist>
  40. &man.common.options.description;
  41. </variablelist>
  42. </refsect1>
  43. <refsect1>
  44. <title>EXIT CODES</title>
  45. <para>
  46. When &gbp-config; finishes, it indicates success or failure with its exit code:
  47. </para>
  48. <variablelist>
  49. <varlistentry>
  50. <term><option>0</option></term>
  51. <listitem>
  52. <para>Success.</para>
  53. </listitem>
  54. </varlistentry>
  55. <varlistentry>
  56. <term><option>1</option></term>
  57. <listitem>
  58. <para>Failed to parse command line</para>
  59. </listitem>
  60. </varlistentry>
  61. <varlistentry>
  62. <term><option>2</option></term>
  63. <listitem>
  64. <para>The value did not exist</para>
  65. </listitem>
  66. </varlistentry>
  67. </variablelist>
  68. </refsect1>
  69. <refsect1>
  70. <title>EXAMPLES</title>
  71. <para>Print the value <option>upstream-branch</option> that &gbp-buildpackage;
  72. would use:</para>
  73. <screen>
  74. $ gbp config buildpackage.upstream-branch
  75. buildpackage.upstream-branch=upstream
  76. </screen>
  77. <para>Print the values of all of &gbp-buildpackage; options</para>
  78. <screen>
  79. $ gbp config buildpackage
  80. buildpackage.upstream-branch=upstream
  81. buildpackage.debian-branch=master
  82. ...
  83. </screen>
  84. </refsect1>
  85. <refsect1>
  86. &man.gbp.config-files;
  87. </refsect1>
  88. <refsect1>
  89. <title>SEE ALSO</title>
  90. <para>
  91. <xref linkend="man.gbp.conf"/>
  92. </para>
  93. </refsect1>
  94. <refsect1>
  95. <title>AUTHOR</title>
  96. <para>&dhusername; &dhemail;</para>
  97. </refsect1>
  98. </refentry>