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

View File

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