mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-22 23:20:06 -07:00
9e38bf7d03
- whitespace is normalized between fields. - less code.
12 lines
307 B
Bash
Executable File
12 lines
307 B
Bash
Executable File
#!/bin/sh -ef
|
|
# Display a package's dependencies
|
|
|
|
kiss list "${1:-"${PWD##*/}"}" >/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/$1/depends"
|