From 36ab9378686ad6f3783f26696615e33e170e235f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Mon, 6 Feb 2017 00:55:02 +0100 Subject: build.sh, {subr,vars}/*: general cleanup. --- subr/build.subr | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'subr/build.subr') 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; }; -- cgit v1.2.3