build-style/perl-ModuleBuild.sh: add generic do_check function.
Closes #9408.
This commit is contained in:
parent
957072a021
commit
9eea97221e
@ -24,6 +24,13 @@ do_build() {
|
|||||||
LD="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ./Build ${make_build_args}
|
LD="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ./Build ${make_build_args}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
do_check() {
|
||||||
|
if [ ! -x ./Build ]; then
|
||||||
|
msg_error "$pkgver: cannot find ./Build script!\n"
|
||||||
|
fi
|
||||||
|
./Build test
|
||||||
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
if [ ! -x ./Build ]; then
|
if [ ! -x ./Build ]; then
|
||||||
msg_error "$pkgver: cannot find ./Build script!\n"
|
msg_error "$pkgver: cannot find ./Build script!\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user