summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbootstrap-stage1-build.sh9
1 files changed, 9 insertions, 0 deletions
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