build-style/perl-ModuleBuild.sh: add generic do_check function.
Closes #9408.
This commit is contained in:
parent
957072a021
commit
9eea97221e
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue