From 3c3d8f6ad69ffb518c82ba7803dee329be6c6807 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 06 Dec 2013 00:35:59 -0500 Subject: bootstrap-stage1-build.sh: Skip built packages. --- diff --git a/bootstrap-stage1-build.sh b/bootstrap-stage1-build.sh index bae13bb..444b52c 100755 --- a/bootstrap-stage1-build.sh +++ b/bootstrap-stage1-build.sh @@ -21,8 +21,14 @@ set -e +ARCH= +PLAT= + main() { + ARCH="$(cat /etc/proteanos_arch)" + PLAT="$(cat /etc/proteanos_plat)" + cat <<-EOF Building packages in stage 1... @@ -53,6 +59,9 @@ build_packages() cd pkg for dir in */; do + if [ -f "${dir%/}_"*"_${ARCH}_${PLAT}.changes" ]; then + continue + fi log 'Building package %s...' "${dir%/}" cd "${dir}" opkbuild -bC -- cgit v0.9.1