[neon/infrastructure/pangea-data] imager: special case when type does not equal series

Carlos De Maine null at kde.org
Mon Sep 30 12:16:04 BST 2024


Git commit abc1f6e98dd41d7b4826509b74d385767692b348 by Carlos De Maine.
Committed on 30/09/2024 at 11:15.
Pushed by carlosdem into branch 'master'.

special case when type does not equal series

M  +17   -2    imager/build.sh

https://invent.kde.org/neon/infrastructure/pangea-data/-/commit/abc1f6e98dd41d7b4826509b74d385767692b348

diff --git a/imager/build.sh b/imager/build.sh
index 8104f75..aac0512 100755
--- a/imager/build.sh
+++ b/imager/build.sh
@@ -161,14 +161,29 @@ fi
 mv livecd.neon.* ../result/
 cd ../result/
 
+
+
 # change to include $DIST to be able to differentiate iso's e.g.-> neon-noble-release-#######.iso
 if [ $TYPE = 'release' ] || [ $DIST = 'noble' ]; then
-    new_iso_name_timestamped="${IMAGENAME}-${DIST}-${TYPE}-${DATETIME}"
+    # morph type into new_type so that the edition is in the iso name for the special cases
+    new_type="${NEONARCHIVE}-${TYPE}"
+    if [ $TYPE = 'mobile' ] || [ $DIST = 'ko' ] ||  [ $TYPE = 'developer' ]; then
+        new_iso_name_timestamped="${IMAGENAME}-${DIST}-$new_type-${DATETIME}"
+    else
+        new_iso_name_timestamped="${IMAGENAME}-${DIST}-${TYPE}-${DATETIME}"
+    fi
+
     for f in live*; do
         new_iso_name_timestamper=$(echo $f | sed "s/livecd\.neon/$new_iso_name_timestamped/")
         mv $f $new_iso_name_timestamper
     done
-    new_iso_name_current="${IMAGENAME}-${DIST}-${TYPE}-current"
+
+    if [ $TYPE = 'mobile' ] || [ $DIST = 'ko' ] ||  [ $TYPE = 'developer' ]; then
+        new_iso_name_current="${IMAGENAME}-${DIST}-$new_type-current"
+    else
+        new_iso_name_current="${IMAGENAME}-${DIST}-${TYPE}-current"
+    fi
+
     ln -s $new_iso_name_timestamped.iso $new_iso_name_current.iso
     zsyncmake $new_iso_name_current.iso
     sha256sum $new_iso_name_timestamped.iso > $new_iso_name_timestamped.sha256sum


More information about the Neon-commits mailing list