forked from LibreELEC/LibreELEC.tv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request LibreELEC#3472 from MilhouseVH/le10_pkginfo
tools/pkginfo: simple tool to dump a package.mk
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
# SPDX-License-Identifier: GPL-2.0 | ||
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv) | ||
|
||
STRIP=no | ||
if [ "$1" = "--strip" -o "$1" = "-s" ]; then | ||
shift | ||
STRIP=yes | ||
fi | ||
|
||
. config/options "$1" | ||
|
||
shift | ||
|
||
echo "PROJECT=${PROJECT}, DEVICE=${DEVICE}, ARCH=${ARCH}" | ||
|
||
for v in PKG_NAME PKG_VERSION PKG_SITE PKG_URL PKG_DIR \ | ||
PKG_NEED_UNPACK PKG_DEPENDS_UNPACK \ | ||
PKG_DEPENDS_BOOTSTRAP PKG_DEPENDS_INIT PKG_DEPENDS_HOST PKG_DEPENDS_TARGET \ | ||
PKG_IS_ADDON PKG_IS_KERNEL_PKG $@; do | ||
if [ "${STRIP}" = "yes" ]; then | ||
echo "${v}=\"${!v}\"" | sed "s#${ROOT}/##g" | ||
else | ||
echo "${v}=\"${!v}\"" | ||
fi | ||
done |