kiss/contrib/kiss-depends
Dylan Araps 9e38bf7d03
kiss-depends: changes
- whitespace is normalized between fields.
- less code.
2020-09-09 13:31:27 +03:00

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"