aboutsummaryrefslogtreecommitdiff
path: root/contrib/cpt-repodepends
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-03-12 13:58:36 +0000
committermerakor <cem@ckyln.com>2021-03-12 13:58:36 +0000
commitfc8de2a8f48485ad8b035a4e76098c4a7dbadb05 (patch)
tree8334227f749afc03c992f7d17edbf72cb5bd6ba8 /contrib/cpt-repodepends
parentf7d3e9f6771a75bff790c569a149f0fee1d28f41 (diff)
downloadcpt-fc8de2a8f48485ad8b035a4e76098c4a7dbadb05.tar.gz
docs: update
FossilOrigin-Name: 143ea57c3d8309faf15399199d0e2930f07371a34c08ff16e9a9f5fbb0be6a23
Diffstat (limited to 'contrib/cpt-repodepends')
-rwxr-xr-xcontrib/cpt-repodepends19
1 files changed, 19 insertions, 0 deletions
diff --git a/contrib/cpt-repodepends b/contrib/cpt-repodepends
index 0babe69..525a62a 100755
--- a/contrib/cpt-repodepends
+++ b/contrib/cpt-repodepends
@@ -1,6 +1,25 @@
#!/bin/sh -e
# Display a package's dependencies in the repository
+## SYNOPSIS:
+## .Nm
+## .Op Ar pkg
+
+## DESCRIPTION:
+## .Nm
+## displays the dependencies of the given
+## .Em repository package .
+## If no package name is given,
+## .Nm
+## will use the name of the current directory as the package.
+##
+## Unlike
+## .Xr cpt-depends 1 ,
+## .Nm
+## checks the package repository in order to print the dependencies, and the
+## package does not have to be installed on the system.
+## see: cpt-depends.1
+
case "$1" in
--help|-h)
printf '%s\n' "usage: ${0##*/} [pkg]"