retrieve-index.1 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .\" $OpenBSD: retrieve-index.1,v 1.6 2017/02/23 14:24:14 espie Exp $
  2. .\"
  3. .\" Copyright (c) 2010 Marc Espie <espie@openbsd.org>
  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: February 23 2017 $
  18. .Dt RETRIEVE-INDEX 1
  19. .Os
  20. .Sh NAME
  21. .Nm retrieve-index
  22. .Nd find index entry in ports index according to selected criteria
  23. .Sh SYNOPSIS
  24. .Nm retrieve-index
  25. .Cm index Ns = Ns Ar file
  26. .Op Cm category Ns = Ns Ar cat
  27. .Op Cm maintainer Ns = Ns Ar person
  28. .Op Cm key Ns = Ns Ar value
  29. .Sh DESCRIPTION
  30. .Nm
  31. scans index file
  32. .Ar file
  33. for index entry (or entries) according to selected criteria,
  34. such as category, maintainer name or actual name.
  35. .Pp
  36. Matching is done using perl regular expressions, and corresponding entries
  37. get printed as a list on a single line on standard output.
  38. .Nm
  39. is a helper script used for searches from the ports infrastructure.
  40. It relies on
  41. .Pa ${PORTSDIR}/INDEX
  42. being accurate.
  43. .Sh SEE ALSO
  44. .Xr perlre 1 ,
  45. .Xr ports 7