Selaa lähdekoodia

build-version: pass BROKEN flag into build.sh properly

Previously, untested hardware models could not be built with this
script.
Helge Jung 8 vuotta sitten
vanhempi
commit
c432973463
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      build-version.sh

+ 3 - 2
build-version.sh

@@ -13,6 +13,7 @@ version=$1
 versionfile="${MY_DIR}/versions/${version}"
 [ -r $versionfile ] || abort "Failed to find the version '$version'."
 
+[ -n "${BROKEN}" ] || BROKEN=0
 base=`awk 'BEGIN { FS="=" } /^GLUON=([a-f0-9]+)(\s*#.+)?$/ { print $2; }' $versionfile | awk 'BEGIN { FS="#" } { print $1; }'`
 branch=`awk 'BEGIN { FS="=" } /^BRANCH=([a-z]+)$/ { print $2; }' $versionfile`
 version=`awk 'BEGIN { FS="=" } /^VERSION=([0-9\.\-+~a-z]+)$/ { print $2; }' $versionfile`
@@ -39,8 +40,8 @@ echo
 
 # invoke build script
 if [ "$NO_DOCKER" == "1" ]; then
-	BASE="$base" BRANCH="$branch" SITE="$site" VERSION="$version" BUILD_TS="$ts" TARGETS="$targets" ./build.sh
+	BASE="$base" BRANCH="$branch" SITE="$site" VERSION="$version" BUILD_TS="$ts" TARGETS="$targets" BROKEN="$BROKEN" ./build.sh
 else
-	BASE="$base" BRANCH="$branch" SITE="$site" VERSION="$version" BUILD_TS="$ts" TARGETS="$targets" ./docker-build.sh
+	BASE="$base" BRANCH="$branch" SITE="$site" VERSION="$version" BUILD_TS="$ts" TARGETS="$targets" BROKEN="$BROKEN" ./docker-build.sh
 fi