aboutsummaryrefslogtreecommitdiff
path: root/contrib/kiss-reporevdepends
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-15 10:27:38 +0000
committermerakor <cem@ckyln.com>2020-05-15 10:27:38 +0000
commit16d89890200d7745ef0ec1999b9098bf6eb4dabc (patch)
tree2b8a5d383e10f86163277438ea49c95bc8efaec9 /contrib/kiss-reporevdepends
parentd88c7c3f97baa5abbb5e7827712c99f10b82c25b (diff)
downloadcpt-16d89890200d7745ef0ec1999b9098bf6eb4dabc.tar.gz
contrib: move some utilities to kiss-extra
FossilOrigin-Name: 5fdd54935c99b2416dfc244cf838092ba03423c21c647d74221e65c66923b5e3
Diffstat (limited to 'contrib/kiss-reporevdepends')
-rwxr-xr-xcontrib/kiss-reporevdepends17
1 files changed, 0 insertions, 17 deletions
diff --git a/contrib/kiss-reporevdepends b/contrib/kiss-reporevdepends
deleted file mode 100755
index 59262f0..0000000
--- a/contrib/kiss-reporevdepends
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-# Display packages on the repository which depend on package
-# shellcheck disable=2086
-
-case "$1" in ''|--help|-h) printf 'usage: %s <pkg>\n' "${0##*/}"; exit 0; esac
-
-pkg="$1"
-IFS=:; set -- $KISS_PATH; unset IFS
-
-for repo do
- # Change directory to the upper directory of the repository
- # so it outputs packages in this nice looking format.
- # repository/package:
- cd "$repo/.." ||:
- # This grep only checks for the full word
- grep "^$pkg\$\|^$pkg\s" -- "${repo##*/}"/*/depends 2>/dev/null ||:
-done