Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bulkbuild-restart script that checks if error/success files exist and makes sense and continues the previous build if they do.
- Loading branch information
joerg
committed
Apr 4, 2008
1 parent
16baf0c
commit a5e3d34
Showing
4 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!@SH@ | ||
# $NetBSD: bulkbuild-restart,v 1.1 2008/04/04 17:58:59 joerg Exp $ | ||
|
||
. @PBULK_CONFIG@ | ||
|
||
set -e | ||
|
||
check_list() { | ||
while read pkg | ||
do | ||
grep -q "^PKGNAME=${pkg}$" ${loc}/presolve && continue | ||
return 1 | ||
done < "$1" | ||
return 0 | ||
} | ||
|
||
if [ ! -e ${loc}/success -o ! -e ${loc}/error ]; then | ||
restart_build=no | ||
elif ! check_list ${loc}/success; then | ||
restart_build=no | ||
elif ! check_list ${loc}/error; then | ||
restart_build=no | ||
else | ||
restart_build=yes | ||
fi | ||
if [ "$restart_build" = "no" ]; then | ||
${script_phase_pre_build} | ||
${script_phase_scan} | ||
fi | ||
${script_phase_build} | ||
${script_phase_report} | ||
${script_phase_upload} |