xbps-src: use XBPS_LIBEXECDIR and XBPS_SHAREDIR in all scripts that need substs.

This commit is contained in:
Juan RP 2011-11-18 14:05:51 +01:00
parent dd4feb7b41
commit c011a2749b
5 changed files with 13 additions and 24 deletions

View file

@ -28,9 +28,11 @@ readonly XBPS_SRC_BUILD_VERSION=20111118
if [ -n "$IN_CHROOT" ]; then
export XBPS_ETCDIR=/usr/local/etc/xbps
export XBPS_SHAREDIR=/usr/local/share/xbps-src
export XBPS_LIBEXECDIR=/usr/local/libexec
else
export XBPS_ETCDIR=@@XBPS_INSTALL_ETCDIR@@
export XBPS_SHAREDIR=@@XBPS_INSTALL_SHAREDIR@@
export XBPS_LIBEXECDIR=@@XBPS_INSTALL_LIBEXECDIR@@
fi
XBPS_CONFIG_FILE=${XBPS_ETCDIR}/xbps-src.conf