aboutsummaryrefslogtreecommitdiff
path: root/contrib/kiss-manifest-tree
blob: 995af9dd165b349f99b7c5d1f46b15ff251ae974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -ef
#
# kiss-manifest-tree - Display all files owned by a package.

db_dir=$KISS_ROOT/var/db/kiss/installed/${1-null}

# Check if package is installed and exit if it is not.
[ -d "$db_dir" ] || {
    printf '%s\n' "error: '$1' not installed." >&2
    exit 1
}

printf '%s\n' "[$1]:"
tree -C --fromfile "$db_dir/manifest" | tail -n +2