1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-11-04 05:55:36 -07:00
kiss/contrib/kiss-depends
2020-09-09 13:40:32 +03:00

14 lines
319 B
Bash
Executable File

#!/bin/sh -ef
# Display a package's dependencies
pkg=${1:-"${PWD##*/}"}
kiss list "$pkg" >/dev/null || {
printf 'usage: kiss-depends [pkg]\n' >&2
exit 1
}
while read -r dep mak || [ "$dep" ]; do
printf '%s%s\n' "$dep" "${mak:+ "$mak"}"
done 2>/dev/null < "$KISS_ROOT/var/db/kiss/installed/$pkg/depends"