From d7ef46b06a4b8c6d54751b6301f7b6f4ac9bb2ea Mon Sep 17 00:00:00 2001 From: Sam Tygier Date: Sun, 6 Jan 2019 22:37:44 +0000 Subject: Allow custom stages STAGE_LIST can be specified in the config file to run additional build stages. --- build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index c44e6db..c8bca0d 100755 --- a/build.sh +++ b/build.sh @@ -195,7 +195,10 @@ dependencies_check "${BASE_DIR}/depends" mkdir -p "${WORK_DIR}" log "Begin ${BASE_DIR}" -for STAGE_DIR in "${BASE_DIR}/stage"*; do +STAGE_LIST=${STAGE_LIST:-${BASE_DIR}/stage*} + +for STAGE_DIR_ in $STAGE_LIST; do + STAGE_DIR=`realpath "${STAGE_DIR_}"` run_stage done -- cgit v1.2.3