mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-16 16:25:23 +01:00
helpers.sh: Add a helper function to call appropriate default stage function.
This commit is contained in:
parent
31caabdeef
commit
a2c5745da4
34 changed files with 60 additions and 50 deletions
|
|
@ -40,21 +40,26 @@ build () {
|
|||
fi
|
||||
|
||||
echo "${pkg}: unpacking source."
|
||||
call src_unpack
|
||||
build_stage=src_unpack
|
||||
call $build_stage
|
||||
|
||||
cd "${pkg}" || (echo "Cannot cd into build/${pkg}!"; kill $$)
|
||||
|
||||
echo "${pkg}: preparing source."
|
||||
call src_prepare
|
||||
build_stage=src_prepare
|
||||
call $build_stage
|
||||
|
||||
echo "${pkg}: configuring source."
|
||||
call src_configure
|
||||
build_stage=src_configure
|
||||
call $build_stage
|
||||
|
||||
echo "${pkg}: compiling source."
|
||||
call src_compile
|
||||
build_stage=src_compile
|
||||
call $build_stage
|
||||
|
||||
echo "${pkg}: installing."
|
||||
call src_install
|
||||
build_stage=src_install
|
||||
call $build_stage
|
||||
|
||||
cd ../..
|
||||
|
||||
|
|
@ -139,3 +144,8 @@ call() {
|
|||
default_"${1}"
|
||||
fi
|
||||
}
|
||||
|
||||
# Call default build stage function
|
||||
default() {
|
||||
"default_${build_stage}"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue