shutils/common.sh: add support for source build-helper files

This commit is contained in:
maxice8
2019-01-21 00:50:35 -02:00
parent 78333e638f
commit e30a9c8908

View File

@@ -597,4 +597,12 @@ setup_pkg() {
fi
source_file $XBPS_COMMONDIR/environment/build-style/${build_style}.sh
# Source all build-class files that are defined
for f in $build_helper; do
if [ ! -r $XBPS_BUILDHELPERDIR/${f}.sh ]; then
msg_error "$pkgver: cannot find build helper $XBPS_BUILDHELPERDIR/${f}.sh!\n"
fi
. $XBPS_BUILDHELPERDIR/${f}.sh
done
}