Files
eden/tools/cpm/which.sh
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
343 B
Bash
Raw Normal View History

#!/bin/sh -e
# SPDX-FileCopyrightText: 2025 crueter
# SPDX-License-Identifier: GPL-3.0-or-later
# check which file a package is in
# shellcheck disable=SC1091
. tools/cpm/common.sh
# shellcheck disable=SC2086
2025-10-20 03:43:15 +02:00
JSON=$(echo "$CPMFILES" | xargs grep -l "$1")
2025-10-20 03:43:15 +02:00
[ -z "$JSON" ] && echo "!! No cpmfile definition for $1" >&2 && exit 1
echo "$JSON"