From 9ee1c1a81fbb7ec3ad5fe1b65a9757aedf837bec Mon Sep 17 00:00:00 2001 From: BlackDragon Date: Sun, 14 Sep 2025 23:42:23 +0200 Subject: [PATCH] more wrok --- profiles/waccalily/metadata | 1 + profiles/waccalilyr/metadata | 1 + profiles/waccareverse/metadata | 1 + profiles/waccas/metadata | 1 + versionselect.sh | 42 ++++++++++++++++++++++++++++++++++ 5 files changed, 46 insertions(+) create mode 100644 versionselect.sh diff --git a/profiles/waccalily/metadata b/profiles/waccalily/metadata index dcdabbb..b39877a 100755 --- a/profiles/waccalily/metadata +++ b/profiles/waccalily/metadata @@ -1,3 +1,4 @@ prettyname="WACCA Lily" +version="2.00" icf="https://archive.org/download/WACCA/EXP/2.00.00%20USB/SDFE_ACA.icf" versionupdate="https://archive.org/download/WACCA/EXP/2.00.00%20USB/%5B%5B%5B%5B%5BVersionUpdate%5D%5D%5D%5D%5D" diff --git a/profiles/waccalilyr/metadata b/profiles/waccalilyr/metadata index afaf598..51822f3 100755 --- a/profiles/waccalilyr/metadata +++ b/profiles/waccalilyr/metadata @@ -1,3 +1,4 @@ prettyname="WACCA Lily R" +version="2.50" icf="https://archive.org/download/WACCA/EXP/2.00.00%20USB/SDFE_ACA.icf" versionupdate="https://archive.org/download/WACCA/EXP/2.00.00%20USB/%5B%5B%5B%5B%5BVersionUpdate%5D%5D%5D%5D%5D" diff --git a/profiles/waccareverse/metadata b/profiles/waccareverse/metadata index b725f24..c3eeb20 100755 --- a/profiles/waccareverse/metadata +++ b/profiles/waccareverse/metadata @@ -1,3 +1,4 @@ prettyname="WACCA Reverse" +version="3.00" icf="https://archive.org/download/WACCA/EXP/3.00.00%20USB/SDFE_ACA.icf" versionupdate="https://archive.org/download/WACCA/EXP/3.00.00%20USB/%5B%5B%5B%5B%5BVersionUpdate%5D%5D%5D%5D%5D" diff --git a/profiles/waccas/metadata b/profiles/waccas/metadata index 3634812..1649afe 100755 --- a/profiles/waccas/metadata +++ b/profiles/waccas/metadata @@ -1,3 +1,4 @@ prettyname="WACCA S" +version="1.50" icf="https://archive.org/download/WACCA/EXP/1.50.00%20USB/SDFE_ACA.icf" versionupdate="https://archive.org/download/WACCA/EXP/1.50.00%20USB/%5B%5B%5B%5B%5BVersionUpdate%5D%5D%5D%5D%5D" diff --git a/versionselect.sh b/versionselect.sh new file mode 100644 index 0000000..1971164 --- /dev/null +++ b/versionselect.sh @@ -0,0 +1,42 @@ +#!/bin/bash + + +versions=() +count=0 +for profile_dir in profiles/*/; do + # Remove the trailing slash to get clean directory name + count=$[count+1] + echo $profile_dir + source $profile_dir/metadata + echo $prettyname + versions+=("$version" "$prettyname") +done +exec 3>&1; +sel=$(dialog --menu "Select major version" 20 60 10 "${versions[@]}" 2>&1 1>&3) +for profile_dir in profiles/*/; do + source $profile_dir/metadata + if [[ "$sel" == "$version" ]]; then + profile=$(basename $profile_dir) + versions2=() + count=0 + while IFS=, read -r vhd version identifier backingversion parent_identifier parent_filename + do + echo $vhd + count=$[count+1] + versions2+=("$version" "$vhd") + done < images/lookup/phase1_$profile.csv + echo "${versions2[@]}" + exec 3>&1; + sel=$(dialog --menu "Select an item:" 20 60 10 "${versions2[@]}" 2>&1 1>&3) + echo $sel + fi +done +# profile="$1" +# versions=() +# count=0 +# while IFS=, read -r vhd version identifier backingversion parent_identifier parent_filename +# do +# count=$[count+1] +# versions+=("$count" "$version") +# done < images/lookup/phase1_$1.csv +# dialog --menu "Select an item:" 20 60 10 "${versions[@]}" \ No newline at end of file