2025-10-03 16:56:46 -04:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2025-10-03 16:59:53 -04:00
|
|
|
# SPDX-FileCopyrightText: 2025 crueter
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2025-10-03 16:56:46 -04:00
|
|
|
# check which file a package is in
|
2025-10-04 14:11:54 -04:00
|
|
|
# shellcheck disable=SC1091
|
|
|
|
. tools/cpm/common.sh
|
2025-10-03 16:56:46 -04:00
|
|
|
|
2025-10-04 14:11:54 -04:00
|
|
|
# shellcheck disable=SC2086
|
|
|
|
JSON=$(find $DIRS -maxdepth "$MAXDEPTH" -name cpmfile.json -exec grep -l "$1" {} \;)
|
2025-10-03 16:56:46 -04:00
|
|
|
|
|
|
|
[ -z "$JSON" ] && echo "!! No cpmfile definition for $1"
|
|
|
|
|
2025-10-04 04:59:04 -04:00
|
|
|
echo "$JSON"
|