aboutsummaryrefslogtreecommitdiff
path: root/contrib/cpt-which
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/cpt-which')
-rwxr-xr-xcontrib/cpt-which7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/cpt-which b/contrib/cpt-which
new file mode 100755
index 0000000..1364e04
--- /dev/null
+++ b/contrib/cpt-which
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+# Locate the first instance of a KISS package
+
+case "$1" in ''|--help|-h) printf '\033[1;33m-> \033[m%s\n' "usage: ${0##*/} [pkg]" ; exit 0; esac
+
+{ kiss s "$1" || exit 1 ;} |
+ sed 1q