summaryrefslogtreecommitdiffhomepage
path: root/subr/build.subr
diff options
context:
space:
mode:
Diffstat (limited to 'subr/build.subr')
-rw-r--r--subr/build.subr14
1 files changed, 10 insertions, 4 deletions
diff --git a/subr/build.subr b/subr/build.subr
index e95bf44d..698a71e8 100644
--- a/subr/build.subr
+++ b/subr/build.subr
@@ -75,11 +75,17 @@ install_files() {
};
is_build_script_done() {
- local _done_fname="${WORKDIR}/.${1}.${2}";
- if [ -e "${_done_fname}" ]; then
- return 0; # Skip
+ local _done_fname="${WORKDIR}/.${1}.${2}" _restart_at="${2}";
+ if [ -z "${_restart_at}" ]; then
+ if [ -e "${_done_fname}" ]; then
+ return 0; # Skip
+ else
+ return 1; # Build
+ fi;
+ elif lmatch "${_restart_at}" , "${2}"; then
+ return 1; # Build
else
- return 1; # Build
+ return 0; # Skip
fi;
};