dpkg-gencontrol.1 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. .TH dpkg\-gencontrol 1 "2007-03-07" "Debian Project" "dpkg utilities"
  2. .SH NAME
  3. dpkg\-gencontrol \- generate Debian control files
  4. .
  5. .SH SYNOPSIS
  6. .B dpkg\-gencontrol
  7. .RI [ options ]
  8. .
  9. .SH DESCRIPTION
  10. .B dpkg\-gencontrol
  11. reads information from an unpacked Debian source tree and generates a
  12. binary package control file (which defaults to debian/tmp/DEBIAN/control);
  13. it also adds an entry for the binary package to
  14. .BR debian/files .
  15. .
  16. .SH OPTIONS
  17. .TP
  18. .BI \-v version
  19. Sets the version number of the binary package which will be generated.
  20. .TP
  21. .BI \-V name = value
  22. Set an output substitution variable. See \fBdpkg-substvars\fP(5) for
  23. discussion of output substitution.
  24. .TP
  25. .BI \-T substvarsfile
  26. Read substitution variables in
  27. .IR substvarsfile ;
  28. the default is
  29. .BR debian/substvars .
  30. .TP
  31. .BI \-D field = value
  32. Override or add an output control file field.
  33. .TP
  34. .BI \-U field
  35. Remove an output control file field.
  36. .TP
  37. .BI \-c controlfile
  38. Specifies the main source control file to read information from. The
  39. default is
  40. .BR debian/control .
  41. .TP
  42. .BI \-l changelogfile
  43. Specifies the change log file to read information from. The
  44. default is
  45. .BR debian/changelog .
  46. .TP
  47. .BI \-f fileslistfile
  48. Read or write the list of files to be uploaded here, rather than using
  49. .BR debian/files .
  50. .TP
  51. .BI \-F changelogformat
  52. Specifies the format of the changelog. By default the format is read
  53. from a special line near the bottom of the changelog or failing that
  54. defaults to the debian standard format.
  55. .TP
  56. .BI \-p package
  57. Generate information for the binary package
  58. .IR package .
  59. If the source control file lists only one binary package then this
  60. option may be omitted; otherwise it is essential to select which
  61. binary package's information to generate.
  62. .TP
  63. .BI \-n filename
  64. Assume the filename of the package will be
  65. .I filename
  66. instead of the normal package_version_arch.deb filename.
  67. .TP
  68. .BR \-is ", " \-ip ", " \-isp
  69. These options are ignored for compatibility with older versions of
  70. dpkg-dev but are now deprecated. Previously they were used to tell
  71. dpkg-gencontrol to include the Section and Priority fields in the
  72. control file. This is now the default behaviour. If you want to
  73. get the old behaviour you can use the
  74. .B \-U
  75. option to delete the fields from the control file.
  76. .TP
  77. .BI \-P packagebuilddir
  78. Tells
  79. .B dpkg\-source
  80. that the package is being built in
  81. .I packagebuilddir
  82. instead of
  83. .BR debian/tmp .
  84. This value is used to find the default value of the
  85. .B Installed\-Size
  86. substitution variable and control file field (using
  87. .BR du ),
  88. and for the default location of the output file.
  89. .TP
  90. .B \-O
  91. Print the control file to standard output, rather than to
  92. .B debian/tmp/DEBIAN/control
  93. (or
  94. .IB packagebuilddir /DEBIAN/control
  95. if
  96. .B \-P
  97. was used).
  98. .TP
  99. .BR \-h ", " \-\-help
  100. Show the usage message and exit.
  101. .TP
  102. .BR \-\-version
  103. Show the version and exit.
  104. .
  105. .SH FILES
  106. .TP
  107. .B debian/control
  108. The main source control information file, giving version-independent
  109. information about the source package and the binary packages it can
  110. produce.
  111. .TP
  112. .B debian/files
  113. The list of generated files which are part of the upload being
  114. prepared.
  115. .B dpkg\-gencontrol
  116. adds the presumed filenames of binary packages whose control files it
  117. generates here;
  118. .
  119. .SH AUTHORS
  120. Copyright (C) 1995-1996 Ian Jackson
  121. .br
  122. Copyright (C) 2000 Wichert Akkerman
  123. .sp
  124. This is free software; see the GNU General Public Licence version 2 or later
  125. for copying conditions. There is NO WARRANTY.