summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-10-23 16:28:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-10-23 16:28:34 +0000
commit3b7ab34e67ed1484ecf825e53715fa4070d2754f (patch)
treeba0357cd6b0028c38f29f5d4372b3f3829b7c272
parentf138d6704b61e542091262f06db4ccf5ed766c56 (diff)
downloadabuild-3b7ab34e67ed1484ecf825e53715fa4070d2754f.tar.bz2
abuild-3b7ab34e67ed1484ecf825e53715fa4070d2754f.tar.xz
abuild: implement prepare()
prepare is run before build(). this allows uses to do patching before configuring and building in a separate step.
-rwxr-xr-xabuild.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index 6b99ca2..9e894dc 100755
--- a/abuild.in
+++ b/abuild.in
@@ -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