portbump.1 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. .\" $OpenBSD: portbump.1,v 1.6 2016/11/02 21:31:37 sthen Exp $
  2. .\"
  3. .\" Copyright (c) 2014 Vadim Zhukov
  4. .\"
  5. .\" Permission to use, copy, modify, and distribute this software for any
  6. .\" purpose with or without fee is hereby granted, provided that the above
  7. .\" copyright notice and this permission notice appear in all copies.
  8. .\"
  9. .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  10. .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  11. .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  12. .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  13. .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  14. .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  15. .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  16. .\"
  17. .Dd $Mdocdate: November 2 2016 $
  18. .Dt PORTBUMP 1
  19. .Os
  20. .Sh NAME
  21. .Nm portbump
  22. .Nd tweaks port revisions and library versions
  23. .Sh SYNOPSIS
  24. .Nm
  25. .Op Fl lMmnrv
  26. .Op Fl W Ar wlib
  27. .Op Fl w Ar wlib
  28. .Op Ar portref ...
  29. .Pp
  30. .Nm
  31. .Fl o Ar file
  32. .Op Fl lMmnrv
  33. .Op Fl W Ar addlib
  34. .Op Fl w Ar rmlib
  35. .Op Ar portref ...
  36. .Sh DESCRIPTION
  37. .Nm
  38. is used to increase ('bump')
  39. .Ev REVISION
  40. and
  41. .Ev SHARED_LIBS
  42. values in
  43. .Ox
  44. ports.
  45. It also can remove
  46. .Ev REVISION
  47. marks and add, update or remove
  48. .Ev WANTLIB
  49. items.
  50. .Pp
  51. .Ar portref
  52. has the same syntax as
  53. .Ev FULLPKGPATH
  54. port variable, see
  55. .Xr bsd.port.mk 5 .
  56. Actually, you can feed a list of pkgpaths as parameters; flavor
  57. information will be ignored.
  58. .Nm
  59. doesn't care about actual subdirectory portion of
  60. .Ar portref ,
  61. so you can freely pass
  62. .Pa \&. ,
  63. .Pa ../foo
  64. or anything else like this.
  65. .Pp
  66. If subpackage is not specified in port reference, then all subpackages
  67. of a port will be processed.
  68. If no port references are given, the port in current directory will
  69. be processed.
  70. .Pp
  71. Default mode of operation is increasing
  72. .Ev REVISION
  73. mark values (
  74. .Fl r ) .
  75. Operations on
  76. .Ev REVISION
  77. marks and on
  78. .Ev SHARED_LIBS
  79. could be combined by explicit specifying corresponding flags, see below.
  80. .Pp
  81. The following options are available:
  82. .Bl -tag -width Ds
  83. .It Fl d
  84. Delete all
  85. .Ev REVISION
  86. marks in
  87. .Pa Makefile .
  88. Mutually exclusive with
  89. .Fl r .
  90. .It Fl l
  91. Recreate all
  92. .Ev WANTLIB
  93. items based on output of
  94. .Sq make port-lib-depends-check .
  95. If used twice or more, the
  96. .Sq make lib-depends-check
  97. will be used instead.
  98. The
  99. .Fl l
  100. mode is incompatible with
  101. .Fl W
  102. and
  103. .Fl w .
  104. .It Fl M
  105. Increment by one major component of all
  106. .Ev SHARED_LIBS ,
  107. resetting minor one to zero if needed.
  108. Mutually exclusive with
  109. .Fl m .
  110. .It Fl m
  111. Increment by one minor component of all
  112. .Ev SHARED_LIBS .
  113. Mutually exclusive with
  114. .Fl M .
  115. .It Fl n
  116. Do not replace
  117. .Pa Makefile
  118. but save modified version in the
  119. .Pa Makefile.bump
  120. instead.
  121. .It Fl o Ar file
  122. Send modified Makefile contents to a given file instead of creating
  123. .Pa Makefile.bump
  124. in port's directory.
  125. This could be only used if not more than one port is specified;
  126. multiple subpackages of a single port could be specified, though.
  127. .It Fl r
  128. Increment
  129. .Ev REVISION
  130. values for all subpackages, or only for given ones.
  131. Mutually exclusive with
  132. .Fl d .
  133. .It Fl W Ar wlib
  134. .It Fl w Ar wlib
  135. Adds or updates (the
  136. .Fl W
  137. flag) or removes (the
  138. .Fl w
  139. flag)
  140. .Ev WANTLIB
  141. items in whole port, or in particular subpackages, if given.
  142. Both options could be specified multiple times, accumulating
  143. corresponding lists.
  144. The
  145. .Ev WANTLIB
  146. entries will be fully re-generated based on previous contents.
  147. Those modes are incompatible with
  148. .Fl l .
  149. .It Fl v
  150. Enable printing of diagnostic messages to standard error output.
  151. .El
  152. .Sh HISTORY
  153. .Nm
  154. first appeared in
  155. .Ox 5.6 .