portlint.1 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. .\" $FreeBSD: ports/devel/portlint/src/portlint.1,v 1.9 2003/02/02 21:17:40 gerald Exp $
  2. .\"
  3. .\" Copyright (c) 1997 by Jun-ichiro Hagino <itojun@itojun.org>.
  4. .\" All Rights Reserved. Absolutely no warranty.
  5. .\"
  6. .Dd July 11, 1997
  7. .Dt PORTLINT 1
  8. .Sh NAME
  9. .Nm portlint
  10. .Nd a verifier for port directory
  11. .Sh SYNOPSIS
  12. .Nm portlint
  13. .Op Fl abchvtNV
  14. .Op Fl M Ar ENV
  15. .Op Fl B Ar n
  16. .Op Ar dir
  17. .Sh DESCRIPTION
  18. .Nm
  19. tries to verify the content of a port directory.
  20. The purpose of
  21. .Nm
  22. can be separated into two parts:
  23. .Pq 1
  24. to let the submitters easily polish their own port directory, and
  25. .Pq 2
  26. to decrease the labor of the committers.
  27. .Pp
  28. .Nm
  29. uses very simple regular-expression matching for verifying
  30. files that make up a port directory.
  31. Note that it does NOT implement a complete parser for those files.
  32. Because of this the user may see some extra warnings,
  33. especially when checking complex
  34. .Pa Makefile Ns No s .
  35. .Pp
  36. .Sy Options
  37. .Bl -tag -width Fl
  38. .It Fl A
  39. Turn on all additional checks.
  40. .It Fl a
  41. Perform additional checks for extra files, such as
  42. .Pa scripts/*
  43. and
  44. .Pa pkg-* .
  45. .It Fl b
  46. Warn the use of
  47. .Pa $(VARIABLE) .
  48. Some of the committers prefer
  49. .Pa ${VARIABLE}
  50. instead of
  51. .Pa $(VARIABLE) ,
  52. even though they are semantically same.
  53. .It Fl c
  54. Committer flag.
  55. It will add several checks useful only for committers.
  56. If you are a committer and performing check just before committing a port,
  57. use this option.
  58. .It Fl h
  59. Show the summary of command line options, then exit.
  60. .It Fl v
  61. Be verbose.
  62. Show the progress report for items that are being checked.
  63. .It Fl t
  64. Nit pick about use of spaces.
  65. .It Fl N
  66. New port flag.
  67. Adds several checks specific to newly submitted port.
  68. If you are willing to submit the directory to be checked as a new port,
  69. use this option.
  70. .It Fl V
  71. Print the portlint version and exit.
  72. .It Fl M Ar ENV
  73. Set make variables to
  74. .Pa ENV
  75. (ex. PORTSDIR=/usr/ports.work).
  76. .It Fl B Ar n
  77. Set the number of contiguous blank lines allowed in
  78. .Pa Makefile
  79. to
  80. .Ar n .
  81. (by default,
  82. .Ar n
  83. is 1)
  84. .It dir
  85. The port directory to be checked.
  86. If omitted, check will be performed over the current directory.
  87. .El
  88. .Sh DIAGNOSTICS
  89. Messages will be sent to standard output, not standard error output.
  90. .Bl -tag -width WARN: foobaa
  91. .It FATAL: ...
  92. This type of error messages suggest that there is some fatal error
  93. in the port directory.
  94. For example, if some files need a rewrite, or if
  95. some inevitable files are missing, this message will show up.
  96. This kind of errors should be avoided BEFORE submitting
  97. a port via send-pr to the committers.
  98. .\"If a submitter submits it without update, committers will need to rewrite
  99. .\"on behalf of the submitters, which may result in delay of
  100. .\"the development of operating system itself.
  101. .It WARN: ...
  102. This type of error messages suggest that some files may (or may not)
  103. need some fix.
  104. Basically, warnings are produced when
  105. .Nm
  106. is not completely sure about the result.
  107. For example, complex
  108. .Pa Makefile Ns No s
  109. may need some statements that can match the regular expression
  110. .Nm
  111. uses for sanity checks.
  112. In those cases, the user should evaluate the result manually,
  113. and obey/ignore the result.
  114. .It OK: ...
  115. This type of messages are used in verbose mode
  116. .Pq Fl v .
  117. .El
  118. .Sh FILES
  119. .Bl -tag -width bsd.port.mkxx -compact
  120. .It Pa bsd.port.mk
  121. master Makefile for ports
  122. .Po
  123. .Pa bsd.pkg.mk
  124. on
  125. .Nx
  126. /
  127. .Ox
  128. .Pc
  129. .It Pa /usr/ports/*
  130. ports collection
  131. .Po
  132. .Pa /usr/pkgsrc/*
  133. on
  134. .Nx
  135. /
  136. .Ox
  137. .Pc ;
  138. can be overriden by setting the
  139. .Va PORTSDIR
  140. environment variable.
  141. .Sh AUTHORS
  142. .An Joe Marcus Clarke Aq marcus@FreeBSD.org
  143. .An Michael Haro Aq mharo@FreeBSD.org
  144. .An Jun-ichiro Hagino Aq itojun@itojun.org
  145. and
  146. .An Yoshishige Arai Aq ryo2@on.rim.or.jp .
  147. .Pp
  148. Many people has contributed patches and comments/suggestions.
  149. .Sh BUGS
  150. .Nm
  151. is not a magic wand, as described above.