abuild: implement prepare()

prepare is run before build(). this allows uses to do patching before
configuring and building in a separate step.
This commit is contained in:
Natanael Copa 2009-10-23 16:28:34 +00:00
parent f138d6704b
commit 3b7ab34e67
1 changed files with 5 additions and 1 deletions

View File

@ -291,6 +291,10 @@ runpart() {
}
# override those in your build script
prepare() {
:
}
build() {
:
}
@ -508,7 +512,7 @@ create_apks() {
apkcache() {
if ! apk_up2date || [ -n "$force" ]; then
sanitycheck && builddeps && clean && fetch && unpack \
&& mkusers && rootpkg || return 1
&& prepare && mkusers && rootpkg || return 1
fi
local apk