xbps-src: make 'show-var' source environment/setup.

This makes XXX_SITE vars work.
This commit is contained in:
Juan RP 2015-11-14 10:25:39 +01:00
parent 70a0fdd8cd
commit 2d9b01bce5
1 changed files with 3 additions and 0 deletions

View File

@ -736,6 +736,9 @@ case "$XBPS_TARGET" in
show_pkg_shlib_requires show_pkg_shlib_requires
;; ;;
show-var) show-var)
for f in ${XBPS_COMMONDIR}/environment/setup/*.sh; do
source $f
done
eval value="\${$XBPS_TARGET_PKG}" eval value="\${$XBPS_TARGET_PKG}"
echo $value echo $value
;; ;;