update: add --out option to mp-build
This commit is contained in:
@ -109,12 +109,20 @@ itoyn() {
|
||||
fi
|
||||
}
|
||||
|
||||
# checks if all the required package vars/functions are set
|
||||
# unsets all the pool script vars/functions
|
||||
clean_pool_vars() {
|
||||
unset NAME
|
||||
unset MAINTAINER
|
||||
unset PUBKEY
|
||||
unset SRCDIR
|
||||
}
|
||||
|
||||
# checks if all the required pool script vars/functions are set
|
||||
check_pool_vars() {
|
||||
if [ ! -n "$NAME" ]; then
|
||||
error "Failed to load the pool script"
|
||||
set_indent
|
||||
|
||||
|
||||
error "Required pool variable is not set: \"\$NAME\""
|
||||
unset_indent
|
||||
|
||||
@ -126,9 +134,9 @@ check_pool_vars() {
|
||||
error "Required pool variable is not set: \"\$MAINTAINER\""
|
||||
unset_indent
|
||||
|
||||
return 1
|
||||
return 1
|
||||
elif [ ! -n "$PUBKEY" ]; then
|
||||
error "Failed to load the pool script"
|
||||
error "Failed to load the pool script"
|
||||
set_indent
|
||||
|
||||
error "Required pool variable is not set: \"\$PUBKEY\""
|
||||
@ -136,7 +144,7 @@ check_pool_vars() {
|
||||
|
||||
return 1
|
||||
elif [ ! -n "$SRCDIR" ]; then
|
||||
error "Failed to load the pool script"
|
||||
error "Failed to load the pool script"
|
||||
set_indent
|
||||
|
||||
error "Required pool variable is not set: \"\$SRCDIR\""
|
||||
@ -144,7 +152,7 @@ check_pool_vars() {
|
||||
|
||||
return 1
|
||||
fi
|
||||
|
||||
|
||||
case "${NAME}" in
|
||||
*" "*)
|
||||
error "Pool name contains an invalid character: \" \""
|
||||
@ -155,7 +163,20 @@ check_pool_vars() {
|
||||
return 0
|
||||
}
|
||||
|
||||
# checks if all the required package vars/functions are set
|
||||
# unsets all the package script vars/functions
|
||||
clean_pkg_vars() {
|
||||
unset NAME
|
||||
unset DESC
|
||||
unset VERSION
|
||||
unset FILES
|
||||
unset HASHES
|
||||
unset DEPENDS
|
||||
unset BUILD
|
||||
unset PACKAGE
|
||||
unset INSTALL
|
||||
}
|
||||
|
||||
# checks if all the required package script vars/functions are set
|
||||
check_pkg_vars() {
|
||||
if [ ! -n "$NAME" ]; then
|
||||
error "Failed to load the package script"
|
||||
|
Reference in New Issue
Block a user