mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-11-19 13:00:05 -07:00
14 lines
319 B
Bash
Executable File
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"
|