common/xbps-src: make docheck use run_step.
This allows a build_style to define a generic do_check function.
This commit is contained in:
parent
feecf69202
commit
2059f871fd
1 changed files with 1 additions and 12 deletions
|
@ -36,18 +36,7 @@ for f in $XBPS_COMMONDIR/environment/check/*.sh; do
|
|||
source_file "$f"
|
||||
done
|
||||
|
||||
cd "$wrksrc" || msg_error "$pkgver: cannot access wrksrc directory [$wrksrc]\n"
|
||||
if [ -n "$build_wrksrc" ]; then
|
||||
cd $build_wrksrc || \
|
||||
msg_error "$pkgver: cannot access build_wrksrc directory [$build_wrksrc]\n"
|
||||
fi
|
||||
|
||||
# Run do_check() if the function is defined
|
||||
if declare -f do_check > /dev/null; then
|
||||
run_func do_check
|
||||
else
|
||||
msg_normal "${pkgname}-${version}_${revision}: template does not have do_check() ...\n"
|
||||
fi
|
||||
run_step check optional
|
||||
|
||||
touch -f $XBPS_CHECK_DONE
|
||||
|
||||
|
|
Loading…
Reference in a new issue