[Replicant] [vendor_replicant-release-scripts] [PATCH 4/6] releasevars.sh: generate RELEASE_IMAGES from RELEASE_DEVICES

Denis 'GNUtoo' Carikli GNUtoo at cyberdimension.org
Fri Oct 8 13:49:00 UTC 2021


This avoid having to touch RELEASE_IMAGES when adding new devices.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at cyberdimension.org>
---
 releasevars.sh | 27 +++++----------------------
 1 file changed, 5 insertions(+), 22 deletions(-)

diff --git a/releasevars.sh b/releasevars.sh
index f2ba2ee..6906ad5 100755
--- a/releasevars.sh
+++ b/releasevars.sh
@@ -47,28 +47,11 @@ RELEASE_DEVICES="\
 "
 
 # The files are in out/dist/${device}/
-RELEASE_IMAGES="\
-	recovery-espresso3g.img \
-	recovery-espressowifi.img \
-	recovery-i9100.img \
-	recovery-i9300.img \
-	recovery-i9305.img \
-	recovery-maguro.img \
-	recovery-n5100.img \
-	recovery-n5110.img \
-	recovery-n7000.img \
-	recovery-n7100.img \
-	replicant-${RELEASE}-espresso3g.zip \
-	replicant-${RELEASE}-espressowifi.zip \
-	replicant-${RELEASE}-i9100.zip \
-	replicant-${RELEASE}-i9300.zip \
-	replicant-${RELEASE}-i9305.zip \
-	replicant-${RELEASE}-maguro.zip \
-	replicant-${RELEASE}-n5100.zip \
-	replicant-${RELEASE}-n5110.zip \
-	replicant-${RELEASE}-n7000.zip \
-	replicant-${RELEASE}-n7100.zip \
-"
+RELEASE_IMAGES=""
+for device in ${RELEASE_DEVICES} ; do
+	RELEASE_IMAGES="${RELEASE_IMAGES} recovery-${device}.img"
+	RELEASE_IMAGES="${RELEASE_IMAGES} replicant-${RELEASE}-${device}"
+done
 
 RELEASE_KEY=""
 if [ -z "${RELEASE_KEY}" ] ; then
-- 
2.33.0



More information about the Replicant mailing list