project=$1
echo ""
if [ $project = "A13-Zebra-qssi-dev" -o $project = "A13-Zebra-qssi-main" ]; then
echo "Please select project $project target"
echo " 1. Groot "
echo " 2. Goose "
if [ $project = "A13-Zebra-qssi-dev" ]; then
read -p "Which project would you like to select? " A13_qssi_dev_target_selection
elif [ $project = "A13-Zebra-qssi-main" ]; then
read -p "Which project would you like to select? " A13_qssi_main_target_selection
else
read -p "Which project would you like to select? " A13_qssi_dev_target_selection
fi
echo ""
fi
echo "Please select project $project choosecombo"
# select project apollo choosecombo
if [ $project = "Apollo" ]; then
echo " 1. choosecombo release apollo user false # user"
echo " 2. choosecombo release apollo userdebug false # userdebug"
# select project apollo-q choosecombo
elif [ $project = "Apollo-Q" ]; then
echo " 1. choosecombo release apollo user false # user"
echo " 2. choosecombo release apollo userdebug false # userdebug"
# select project apollo-saturn choosecombo
elif [ $project = "Apollo-Saturn" ]; then
echo " 1. choosecombo release apollo user false false # apollo user"
echo " 2. choosecombo release apollo userdebug false false # apollo userdebug"
echo " 3. choosecombo release saturn user false false # saturn user"
echo " 4. choosecombo release saturn userdebug false false # saturn userdebug"
# select project apollo-saturn-temp choosecombo
elif [ $project = "Apollo-Saturn-Temp" ]; then
echo " 1. choosecombo release apollo user false false # user"
echo " 2. choosecombo release apollo userdebug false false # userdebug"
# select project dtx400 choosecombo
elif [ $project = "DTX400" ]; then
echo " 1. choosecombo release dtx400 user false # user"
echo " 2. choosecombo release dtx400 userdebug false # userdebug"
# select project dtx400-p choosecombo
elif [ $project = "DTX400-P" ]; then
echo " 1. choosecombo release dtx400 user false # user"
echo " 2. choosecombo release dtx400 userdebug false # userdebug"
# select project orion choosecombo
elif [ $project = "Orion-Q450" ]; then
echo " 1. choosecombo release orion user false false # user"
echo " 2. choosecombo release orion userdebug false false # userdebug"
# select project pm75 choosecombo
elif [ $project = "PM75" ]; then
echo " 1. choosecombo release PM75 user false # user"
echo " 2. choosecombo release PM75 userdebug false # userdebug"
# select project pm90 choosecombo
elif [ $project = "PM90" ]; then
echo " 1. choosecombo release itg600 user false # itg600 user"
echo " 2. choosecombo release itg600 userdebug false # itg600 userdebug"
echo " 3. choosecombo release pm451 user false # pm451 user"
echo " 4. choosecombo release pm451 userdebug false # pm451 userdebug"
echo " 5. choosecombo release pm90 user false # pm90 user"
echo " 6. choosecombo release pm90 userdebug false # pm90 userdebug"
# select project wd200 choosecombo
elif [ $project = "WD200" ]; then
echo " 1. choosecombo release wd200 user false # user"
echo " 2. choosecombo release wd200 userdebug false # userdebug"
# select project zebrascanner choosecombo
elif [ $project = "ZebraScanner" ]; then
echo " 1. choosecombo release t1 user false # user"
echo " 2. choosecombo release t1 userdebug false # userdebug"
# select project sf200-gms choosecombo
elif [ $project = "SF200-gms" ]; then
echo " 1. choosecombo release wd200 user false # wd200 user"
echo " 2. choosecombo release wd200 userdebug false # wd200 userdebug"
echo " 3. choosecombo release sf200 user false # sf200 user"
echo " 4. choosecombo release sf200 userdebug false # sf200 userdebug"
# select project Groot choosecombo
elif [ $project = "Groot" ]; then
echo " 1. choosecombo release Groot user false NOGMS # Groot user NOGMS"
echo " 2. choosecombo release Groot user false GMS # Groot user GMS"
echo " 3. choosecombo release Groot userdebug false NOGMS # Groot userdebug NOGMS"
echo " 4. choosecombo release Groot userdebug false GMS # Groot userdebug GMS"
echo " 5. choosecombo release Goose user false NOGMS # Goose user NOGMS"
echo " 6. choosecombo release Goose user false GMS # Goose user GMS"
echo " 7. choosecombo release Goose userdebug false NOGMS # Goose userdebug NOGMS"
echo " 8. choosecombo release Goose userdebug false GMS # Goose userdebug GMS"
# select project GrootT qssi dev/main choosecombo
elif [ $project = "A13-Zebra-qssi-dev" -o $project = "A13-Zebra-qssi-main" ]; then
echo " 1. choosecombo release qssi user false # user NOGMS"
echo " 2. choosecombo release qssi userdebug false # userdebug NOGMS"
echo " 3. choosecombo release qssi user true # user GMS"
echo " 4. choosecombo release qssi userdebug true # userdebug GMS"
# select project GrootT qssi choosecombo
elif [ $project = "A13-Zebra-target" ]; then
echo " 1. choosecombo release Groot user false NOGMS false # Groot user NOGMS"
echo " 2. choosecombo release Groot user false GMS false # Groot user GMS"
echo " 3. choosecombo release Groot userdebug false NOGMS false # Groot userdebug NOGMS"
echo " 4. choosecombo release Groot userdebug false GMS false # Groot userdebug GMS"
echo " 5. choosecombo release Goose user false NOGMS false # Goose user NOGMS"
echo " 6. choosecombo release Goose user false GMS false # Goose user GMS"
echo " 7. choosecombo release Goose userdebug false NOGMS false # Goose userdebug NOGMS"
echo " 8. choosecombo release Goose userdebug false GMS false # Goose userdebug GMS"
# unknown project to select choosecombo
else
echo "Unknown project to select choosecombo: $project"
fi
read -p "Which project choosecombo would you like to select? " choosecombo_selection
# format project apollo choosecombo
if [ $project = "Apollo" ]; then
if [ $choosecombo_selection ]; then
if [ $choosecombo_selection -eq 1 ]; then
project_choosecombo_apollo="choosecombo release apollo user false # user"
elif [ $choosecombo_selection -eq 2 ]; then
project_choosecombo_apollo="choosecombo release apollo userdebug false # userdebug"
else
project_choosecombo_apollo="choosecombo release apollo userdebug false # userdebug"
fi
else
project_choosecombo_apollo="choosecombo release apollo userdebug false # userdebug"
fi
# format project apollo-q choosecombo
elif [ $project = "Apollo-Q" ]; then
if [ $choosecombo_selection ]; then
if [ $choosecombo_selection -eq 1 ]; then
project_choosecombo_apollo_q="choosecombo release apollo user false # user"
elif [ $choosecombo_selection -eq 2 ]; then
project_choosecombo_apollo_q="choosecombo release apollo userdebug false # userdebug"
else
project_choosecombo_apollo_q="choosecombo release apollo userdebug false # userdebug"
fi
else
project_choosecombo_apollo_q="choosecombo release apollo userdebug false # userdebug"
fi
# format project apollo-saturn choosecombo
elif [ $project = "Apollo-Saturn" ]; then
if [ $choosecombo_selection ]; then
if [ $choosecombo_selection -eq 1 ]; then
project_choosecombo_apollo_saturn="choosecombo release apollo user false false # apollo user"
elif [ $choosecombo_selection -eq 2 ]; then
project_choosecombo_apollo_saturn="choosecombo release apollo userdebug false false # apollo userdebug"
elif [ $choosecombo_selection -eq 3 ]; then
project_choosecombo_apollo_saturn="choosecombo release saturn user false false # saturn user"
elif [ $choosecombo_selection -eq 4 ]; then
project_choosecombo_apollo_saturn="choosecombo release saturn userdebug false false # saturn userdebug"
else
project_choo